Use wget to get the latest version of the updater
This commit is contained in:
parent
0e75bec7a6
commit
f60d434840
@ -1,5 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
rm ./updater
|
||||
wget https://raw.githubusercontent.com/TotallyNotElite/cathook/testingbranch01/tools/updater
|
||||
bash updater
|
||||
|
||||
: '
|
||||
cd cathook
|
||||
|
||||
update()
|
||||
@ -20,4 +24,4 @@ update
|
||||
cd build; cmake ..; make; cd ..; cd ..
|
||||
|
||||
cp -a -u ./cathook/tools/. ./; rm ./README
|
||||
|
||||
'
|
||||
|
20
tools/updater
Executable file
20
tools/updater
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd cathook
|
||||
|
||||
|
||||
git fetch >update.log
|
||||
if ! git pull origin $(git rev-parse --abbrev-ref HEAD) >>update.log; then
|
||||
$DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78
|
||||
exit
|
||||
fi
|
||||
if ! git submodule update --remote --recursive >>update.log; then
|
||||
$DIALOG --title "Error" --backtitle "Updating" --msgbox "An error occured while updating cathook, check update.log for details. It might have been caused by changes in local files - in that case try resetting local repo." 8 78
|
||||
exit
|
||||
fi
|
||||
}
|
||||
|
||||
cd build; cmake ..; make; cd ..; cd ..
|
||||
|
||||
cp -a -u ./cathook/tools/. ./; rm ./README; rm ./updater
|
||||
|
Reference in New Issue
Block a user