aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorSpacelord <spacelord09@users.noreply.github.com>2020-03-09 16:40:43 +0100
committerSpacelord <spacelord09@users.noreply.github.com>2020-03-09 17:06:42 +0100
commitc656294f14c3b31c408d2e24fa8a062144ceb9ab (patch)
treed4bb114ccc34f69f88217670ef08cc88d58d99ab
parent7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71 (diff)
downloadmidimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.tar.gz
midimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.tar.bz2
midimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.zip
Installer: Update prefix-containing variables.
-rwxr-xr-xinstaller.sh5
1 files changed, 4 insertions, 1 deletions
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