From be7862b457f087d804b9fd66f50af61f845b3b65 Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 3 Feb 2021 20:09:24 +0100 Subject: [PATCH] you can now choose install directrory --- install.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install.sh b/install.sh index b6f1285..ddd2f89 100644 --- a/install.sh +++ b/install.sh @@ -4,6 +4,15 @@ GIT_NAME="kvs-linuxmint-dloadx" # Must not contain spaces and/or weird character TARGET_DIR="/opt" #directory to install to USERNAME=$(logname) +echo "What directory do you want to install to?" +echo "Specify directory below and files wil be copied in to a subdirectory of that directory called /$GIT_NAME" +echo "Default is /opt" +read TARGET_DIR + +if [ $TARGET_DIR == "" ]; then + TARGET_DIR="/opt" +fi + if [[ $EUID -ne 0 ]]; then #make shure that script is being run as root echo "This script must be run as root." exit 1