Fix helper script download and script restarting for curl isntall
This commit is contained in:
parent
5ba70719a6
commit
58edc3ee22
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
|||||||
msman-helper.tar.gz
|
msman-hepler.tar.gz
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
EXTRA_SCRIPTS_VERSION="v1.1.3"
|
EXTRA_SCRIPTS_VERSION="v1.1.4"
|
||||||
|
Binary file not shown.
11
msman.sh
11
msman.sh
@ -8,7 +8,7 @@ set -e
|
|||||||
# and acknowledge the original script and author. #
|
# and acknowledge the original script and author. #
|
||||||
#############################################################################################################
|
#############################################################################################################
|
||||||
|
|
||||||
CURRENT_SCRIPT_VERSION="v1.1.3"
|
CURRENT_SCRIPT_VERSION="v1.1.4"
|
||||||
|
|
||||||
# --------------------------------------------------
|
# --------------------------------------------------
|
||||||
# You shouldn't need to change anything in this file
|
# You shouldn't need to change anything in this file
|
||||||
@ -215,9 +215,10 @@ function helper_scripts_update {
|
|||||||
rm -rf .msman
|
rm -rf .msman
|
||||||
echo "Removed old script"
|
echo "Removed old script"
|
||||||
echo "Moving new helper scripts into place..."
|
echo "Moving new helper scripts into place..."
|
||||||
mv msman .msman
|
mv msman/.msman .msman
|
||||||
echo "Removing temporary files..."
|
echo "Removing temporary files..."
|
||||||
rm msman-helper.tar.gz
|
rm msman-helper.tar.gz
|
||||||
|
rm -rf msman
|
||||||
echo "Helper scripts updated successfully."
|
echo "Helper scripts updated successfully."
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
@ -317,8 +318,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
|
||||||
ScriptLoc=$(readlink -f "$0")
|
bash -c $(pwd)/msman.sh
|
||||||
bash -c $ScriptLoc
|
|
||||||
else
|
else
|
||||||
echo "Skipping update."
|
echo "Skipping update."
|
||||||
return
|
return
|
||||||
@ -465,8 +465,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
|
||||||
ScriptLoc=$(readlink -f "$0")
|
bash -c $(pwd)/msman.sh
|
||||||
bash -c $ScriptLoc
|
|
||||||
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