mirror of
https://github.com/LukeZGD/Legacy-iOS-Kit.git
synced 2024-11-27 10:24:16 +01:00
Get version
This commit is contained in:
parent
a8d019c451
commit
9ef6df9c29
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@ -6,6 +6,9 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Create git_hash
|
||||
run: echo ${{ github.sha }} | tee ./resources/git_hash
|
||||
|
||||
- name: Move linux binaries
|
||||
run: |
|
||||
mkdir -p ./exclude/firmware ./exclude/lib ./exclude/tools
|
||||
|
10
restore.sh
10
restore.sh
@ -65,7 +65,7 @@ ExitWin() {
|
||||
|
||||
Main() {
|
||||
local Selection=()
|
||||
|
||||
|
||||
clear
|
||||
Echo "******* iOS-OTA-Downgrader *******"
|
||||
Echo " - Downgrader script by LukeZGD - "
|
||||
@ -80,6 +80,14 @@ Main() {
|
||||
"If resources folder is present try removing spaces from path/folder name"
|
||||
fi
|
||||
|
||||
if [[ -d .git ]]; then
|
||||
Echo "Version: $(git rev-parse HEAD)"
|
||||
elif [[ -e resources/git_hash ]]; then
|
||||
Echo "Version: $(cat resources/git_hash)"
|
||||
else
|
||||
Echo "Version: Unknown"
|
||||
fi
|
||||
|
||||
SetToolPaths
|
||||
if [[ $? != 0 ]]; then
|
||||
Error "Setting tool paths failed. Your copy of iOS-OTA-Downgrader seems to be incomplete."
|
||||
|
Loading…
Reference in New Issue
Block a user