aboutsummaryrefslogtreecommitdiffhomepage
path: root/installer.sh
diff options
context:
space:
mode:
authorSpacelord <spacelord09@users.noreply.github.com>2020-03-08 22:00:37 +0100
committerSpacelord <spacelord09@users.noreply.github.com>2020-03-08 22:00:37 +0100
commit7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71 (patch)
tree46945bae2c0eedd7408aa3d055e270da98f19fda /installer.sh
parentf66a8cf114c113cabd81bc9d8900f22c3e19da3c (diff)
downloadmidimonster-7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71.tar.gz
midimonster-7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71.tar.bz2
midimonster-7085f3511cd41cbb9f05d2ab46f3bcb2b93a6c71.zip
Installer: Update prefix-containing variables when the prefix argument is set.
Diffstat (limited to 'installer.sh')
-rwxr-xr-xinstaller.sh8
1 files 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}"