Fixed updater issue with bash
This commit is contained in:
parent
1697df4701
commit
24a6e63594
1 changed files with 3 additions and 2 deletions
|
@ -580,8 +580,9 @@ elif [ "$1" == "remoteauth" ]; then
|
||||||
noRepoFound "$3"
|
noRepoFound "$3"
|
||||||
fi
|
fi
|
||||||
elif [ "$1" == "selfupdate" ]; then
|
elif [ "$1" == "selfupdate" ]; then
|
||||||
echo "Updating sos-git to \"$0\""
|
echo -e "echo \"Updating sos-git to \\"$0\\"\"\n$SOSGIT_CURL \"-sSLqq\" \"$SOSGIT_UPDATEURL\" &> \"$0\"\nkill -9 $$" &> $SOSGIT_TMP/sos-git-updater.sh
|
||||||
$SOSGIT_CURL "-sSLqq" "$SOSGIT_UPDATEURL" &> "$0"
|
chmod +x $SOSGIT_TMP/sos-git-updater.sh
|
||||||
|
$SOSGIT_TMP/sos-git-updater.sh
|
||||||
elif [ "$1" == "list" ]; then
|
elif [ "$1" == "list" ]; then
|
||||||
translateRepo ""
|
translateRepo ""
|
||||||
$SOSGIT_LS -A -h "$SOSGIT_EXITSTRING"
|
$SOSGIT_LS -A -h "$SOSGIT_EXITSTRING"
|
||||||
|
|
Reference in a new issue