From 1595d1963fe57a0b344199e4aa4357b89747de64 Mon Sep 17 00:00:00 2001 From: Heavybullets8 Date: Tue, 23 Aug 2022 12:42:02 -0600 Subject: [PATCH] fix latestver --- functions/self_update.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/functions/self_update.sh b/functions/self_update.sh index 6aab3597..47f29854 100644 --- a/functions/self_update.sh +++ b/functions/self_update.sh @@ -9,8 +9,7 @@ echo "🅂 🄴 🄻 🄵" echo "🅄 🄿 🄳 🄰 🅃 🄴" if [[ "$hs_version" != "$latest_ver" ]] ; then echo "Found a new version of HeavyScript, updating myself..." - git reset --hard -q - git checkout "$(latest_ver)" + git checkout "($latest_ver)" count=0 for i in "${args[@]}" do