From 7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71 Mon Sep 17 00:00:00 2001 From: Spacelord Date: Sun, 8 Mar 2020 22:00:37 +0100 Subject: Installer: Update prefix-containing variables when the prefix argument is set. --- installer.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index 30b03e5..ed6b2aa 100755 --- a/installer.sh +++ b/installer.sh @@ -20,9 +20,9 @@ c_green=$(tput setaf 2) VAR_DESTDIR="" # Unused VAR_PREFIX="/usr" -VAR_PLUGINS="$VAR_PREFIX/lib/midimonster" +VAR_PLUGINS="$VAR_PREFIX/lib/midimonster" # Reassigned in func. ARGS to update "$VAR_PREFIX" when an argument is set. VAR_DEFAULT_CFG="/etc/midimonster/midimonster.cfg" -VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" +VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" # Reassigned in func. ARGS to update "$VAR_PREFIX" when an argument is set. ################################################ SETUP ################################################ @@ -36,6 +36,8 @@ ARGS () { --prefix=*) VAR_PREFIX="${i#*=}" VAR_PREFIX_I="1" + VAR_PLUGINS="$VAR_PREFIX/lib/midimonster" + VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" ;; --plugins=*) VAR_PLUGINS="${i#*=}" @@ -134,7 +136,7 @@ INSTALL-PREP () { ) NIGHTLY_CHECK printf "Preparation done.\n\n" - printf "${bold}If you don't know what you're doing, just hit enter.${normal}\n\n" + printf "${bold}If you don't know what you're doing, just hit enter a few times.${normal}\n\n" if [ -z "$VAR_PREFIX_I" ]; then read -e -i "$VAR_PREFIX" -p "PREFIX (Install root directory): " input # Reads VAR_PREFIX VAR_PREFIX="${input:-$VAR_PREFIX}" -- cgit v1.2.3