Fix script reload
This commit is contained in:
parent
3b81b39731
commit
a28a24c053
4
msman.sh
4
msman.sh
@ -317,7 +317,7 @@ function check_self_update {
|
|||||||
self_update
|
self_update
|
||||||
CURRENT_VERSION=$LATEST_SCRIPT_VERSION
|
CURRENT_VERSION=$LATEST_SCRIPT_VERSION
|
||||||
check_helper_scripts
|
check_helper_scripts
|
||||||
exec "$ScriptLoc"
|
exec $0
|
||||||
else
|
else
|
||||||
echo "Skipping update."
|
echo "Skipping update."
|
||||||
return
|
return
|
||||||
@ -464,7 +464,7 @@ if [[ "$1" == "--redownload" ]] || [[ "$1" == "-r" ]]; then
|
|||||||
get_latest_script_release
|
get_latest_script_release
|
||||||
self_update
|
self_update
|
||||||
# Reload the script
|
# Reload the script
|
||||||
exec "$ScriptLoc"
|
exec $0
|
||||||
exit 0
|
exit 0
|
||||||
elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then
|
elif [[ "$1" == "--edit-config" ]] || [[ "$1" == "-e" ]]; then
|
||||||
if ! command -v $EDITOR &> /dev/null; then
|
if ! command -v $EDITOR &> /dev/null; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user