diff --git a/sos-git.sh b/sos-git.sh index c9ede93..5ff12ef 100755 --- a/sos-git.sh +++ b/sos-git.sh @@ -580,8 +580,9 @@ elif [ "$1" == "remoteauth" ]; then noRepoFound "$3" fi elif [ "$1" == "selfupdate" ]; then - echo "Updating sos-git to \"$0\"" - $SOSGIT_CURL "-sSLqq" "$SOSGIT_UPDATEURL" &> "$0" + echo -e "echo \"Updating sos-git to \\"$0\\"\"\n$SOSGIT_CURL \"-sSLqq\" \"$SOSGIT_UPDATEURL\" &> \"$0\"\nkill -9 $$" &> $SOSGIT_TMP/sos-git-updater.sh + chmod +x $SOSGIT_TMP/sos-git-updater.sh + $SOSGIT_TMP/sos-git-updater.sh elif [ "$1" == "list" ]; then translateRepo "" $SOSGIT_LS -A -h "$SOSGIT_EXITSTRING"