From c656294f14c3b31c408d2e24fa8a062144ceb9ab Mon Sep 17 00:00:00 2001 From: Spacelord Date: Mon, 9 Mar 2020 16:40:43 +0100 Subject: Installer: Update prefix-containing variables. --- installer.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/installer.sh b/installer.sh index ed6b2aa..049d7c7 100755 --- a/installer.sh +++ b/installer.sh @@ -38,6 +38,7 @@ ARGS () { VAR_PREFIX_I="1" VAR_PLUGINS="$VAR_PREFIX/lib/midimonster" VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" + VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" ;; --plugins=*) VAR_PLUGINS="${i#*=}" @@ -138,8 +139,10 @@ INSTALL-PREP () { printf "Preparation done.\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 + read -e -i "$VAR_PREFIX" -p "PREFIX (Install root directory): " input # Reads VAR_PREFIX then update containing vars VAR_PREFIX="${input:-$VAR_PREFIX}" + VAR_PLUGINS="$VAR_PREFIX/lib/midimonster" # Update prefix-containing variables. + VAR_EXAMPLE_CFGS="$VAR_PREFIX/share/midimonster" # Update prefix-containing variables. fi if [ -z "$VAR_PLUGINS_I" ]; then -- cgit v1.2.3