Get version

This commit is contained in:
LukeZGD 2022-07-24 20:33:27 +08:00
parent a8d019c451
commit 9ef6df9c29
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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."