From cc2ec17b053aa43bf6b5cc8fb0d80bdb0629004d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Mon, 27 Feb 2023 01:23:54 +0100 Subject: [PATCH] Fix relaunching the script after update --- msman.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/msman.sh b/msman.sh index 10f04ed..85bd7e8 100755 --- a/msman.sh +++ b/msman.sh @@ -317,6 +317,7 @@ function check_self_update { self_update CURRENT_VERSION=$LATEST_SCRIPT_VERSION check_helper_scripts + exec "$ScriptLoc" else echo "Skipping update." return @@ -463,7 +464,7 @@ if [[ "$1" == "--redownload" ]] || [[ "$1" == "-r" ]]; then get_latest_script_release self_update # Reload the script - exec "$0" + exec "$ScriptLoc" exit 0 elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then if ! command -v $EDITOR &> /dev/null; then