Same as last commit

Bash is weird
This commit is contained in:
TotallyNotElite 2018-05-21 11:07:46 +02:00
parent 39166fc906
commit b3b1ff6d25
2 changed files with 5 additions and 27 deletions

View File

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

View File

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