diff options
author | Spacelord <spacelord09@users.noreply.github.com> | 2020-03-09 16:40:43 +0100 |
---|---|---|
committer | Spacelord <spacelord09@users.noreply.github.com> | 2020-03-09 17:06:42 +0100 |
commit | c656294f14c3b31c408d2e24fa8a062144ceb9ab (patch) | |
tree | d4bb114ccc34f69f88217670ef08cc88d58d99ab | |
parent | 7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71 (diff) | |
download | midimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.tar.gz midimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.tar.bz2 midimonster-c656294f14c3b31c408d2e24fa8a062144ceb9ab.zip |
Installer: Update prefix-containing variables.
-rwxr-xr-x | installer.sh | 5 |
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 |