aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSpacelord <spacelord09@users.noreply.github.com>2020-03-08 21:21:59 +0100
committerSpacelord <spacelord09@users.noreply.github.com>2020-03-08 21:21:59 +0100
commitf66a8cf114c113cabd81bc9d8900f22c3e19da3c (patch)
tree08204c16bfbbdcf928e4d9a1623c8e798477ed65
parent2cffce783bcc4f34f6a609bf446530f350be04a2 (diff)
downloadmidimonster-f66a8cf114c113cabd81bc9d8900f22c3e19da3c.tar.gz
midimonster-f66a8cf114c113cabd81bc9d8900f22c3e19da3c.tar.bz2
midimonster-f66a8cf114c113cabd81bc9d8900f22c3e19da3c.zip
Updater: fix if
-rwxr-xr-xinstaller.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/installer.sh b/installer.sh
index 7cf389d..30b03e5 100755
--- a/installer.sh
+++ b/installer.sh
@@ -257,11 +257,12 @@ if [ $(wget -q --spider http://github.com) $? -eq 1 ]; then
fi
# Forceupdate # Now only with default config because source imports all and overwrites the args.. [WIP!]
-if [ "$UPDATER_FORCE" -eq "1" ]; then
+if [ "$UPDATER_FORCE" = "1" ]; then
printf "Forcing the updater to start...\n\n"
if [ -f $updater_file ]; then
. $updater_file
ARGS "$@" # Parse arguments again to compensate overwrite from source /\
+ printf "Successfully imported settings from %s\n" "$updater_file"
fi
UPDATER-PREP
@@ -280,7 +281,7 @@ if [ -f $updater_file ]; then
if [ -x "$VAR_PREFIX/bin/midimonster" ]; then
UPDATER
else
- printf "midimonster binary not found, skipping updater.\n"
+ printf "MIDIMonster binary not found, skipping updater.\nYou can force an update with --forceupdate\n"
fi
fi