Fix relaunching the script after update
This commit is contained in:
parent
be70839f3b
commit
cc2ec17b05
3
msman.sh
3
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user