From 5d20c6b2461c2cb0c656e1f0ec60c99be6996530 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 14 Aug 2022 13:45:27 +0200 Subject: [PATCH] Simplified sos-git updater --- sos-git.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sos-git.sh b/sos-git.sh index e3fd215..8efb0c8 100755 --- a/sos-git.sh +++ b/sos-git.sh @@ -580,10 +580,7 @@ elif [ "$1" == "remoteauth" ]; then noRepoFound "$3" fi elif [ "$1" == "selfupdate" ]; then - if [ -f "$SOSGIT_TMP/sos-git-updater.sh" ]; then - 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 + echo -e "echo Updating sos-git to \"$0\";$SOSGIT_CURL -sSLqq \"$SOSGIT_UPDATEURL\" &> $0;kill -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