Simplified sos-git updater
This commit is contained in:
parent
7f503546d2
commit
5d20c6b246
1 changed files with 1 additions and 4 deletions
|
@ -580,10 +580,7 @@ elif [ "$1" == "remoteauth" ]; then
|
||||||
noRepoFound "$3"
|
noRepoFound "$3"
|
||||||
fi
|
fi
|
||||||
elif [ "$1" == "selfupdate" ]; then
|
elif [ "$1" == "selfupdate" ]; then
|
||||||
if [ -f "$SOSGIT_TMP/sos-git-updater.sh" ]; then
|
echo -e "echo Updating sos-git to \"$0\";$SOSGIT_CURL -sSLqq \"$SOSGIT_UPDATEURL\" &> $0;kill -9 $$" &> $SOSGIT_TMP/sos-git-updater.sh
|
||||||
rm -rf "$SOSGIT_TMP/sos-git-updater.sh"
|
|
||||||
fi
|
|
||||||
echo -e "echo Updating sos-git to \"$0\";$SOSGIT_CURL -sSLqq \"$SOSGIT_UPDATEURL\" &> $0;kill -9 $$ &> /dev/null" &> $SOSGIT_TMP/sos-git-updater.sh
|
|
||||||
chmod +x $SOSGIT_TMP/sos-git-updater.sh
|
chmod +x $SOSGIT_TMP/sos-git-updater.sh
|
||||||
$SOSGIT_TMP/sos-git-updater.sh
|
$SOSGIT_TMP/sos-git-updater.sh
|
||||||
elif [ "$1" == "list" ]; then
|
elif [ "$1" == "list" ]; then
|
||||||
|
|
Reference in a new issue