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