Same as last commit
Bash is weird
This commit is contained in:
parent
39166fc906
commit
b3b1ff6d25
30
tools/update
30
tools/update
@ -1,27 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
rm ./updater
|
||||
wget https://raw.githubusercontent.com/TotallyNotElite/cathook/testingbranch01/tools/updater
|
||||
bash updater
|
||||
|
||||
: '
|
||||
cd cathook
|
||||
|
||||
update()
|
||||
{
|
||||
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
|
||||
rm ./updater.sh
|
||||
wget https://raw.githubusercontent.com/TotallyNotElite/cathook/testingbranch01/tools/updater.sh
|
||||
updater() {
|
||||
source updater.sh
|
||||
}
|
||||
|
||||
update
|
||||
|
||||
cd build; cmake ..; make; cd ..; cd ..
|
||||
|
||||
cp -a -u ./cathook/tools/. ./; rm ./README
|
||||
'
|
||||
updater
|
||||
|
@ -51,5 +51,3 @@ cd build; cmake ..; make; cd ..; cd ..
|
||||
|
||||
|
||||
cp -a -u ./cathook/tools/. ./; rm ./README; rm ./updater
|
||||
exit
|
||||
#Important! Otherwise you will run into weird bash issues after copying files
|
Reference in New Issue
Block a user