From 9d52d4882d2ad816b710302372bf5f44349615b1 Mon Sep 17 00:00:00 2001 From: Fufezan Mihai Date: Wed, 27 Jan 2021 11:41:12 +0200 Subject: [PATCH] add -c option to modify X11 location --- install-dreymar-xmod.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install-dreymar-xmod.sh b/install-dreymar-xmod.sh index 13e4110..9470521 100644 --- a/install-dreymar-xmod.sh +++ b/install-dreymar-xmod.sh @@ -75,6 +75,7 @@ HelpStr="\e[1mUsage: bash ${MyNAME} [optional args] [ [ ]]\e[0m\n "[-#] Functionality - 'default' \n"\ "===========================================================\n"\ "[-i] - ${InstDir}\n"\ +"[-c] Change path to X11 - ${X11DIR}\n"\ "[-o] Override install path w/ X11 - ${WriteSys}\n"\ "[-b] Force backup | location - ${X11DIR}\n"\ "[-n] Force no backup | default - ${DoBackup}\n"\ @@ -137,7 +138,7 @@ MyError() #~ } #~ if [ "$#" == 0 ]; then PrintHelpAndExit 2; fi # No args -while getopts "obngxm:i:d:t:r:h?" cmdarg; do +while getopts "obngxm:i:c:d:t:r:h?" cmdarg; do case $cmdarg in o) WriteSys='yes' ;; b) DoBackup='yes' ;; @@ -146,6 +147,7 @@ while getopts "obngxm:i:d:t:r:h?" cmdarg; do x) SetXMap='yes' ;; m) SubDirs="$OPTARG" ;; i) InstDir="$OPTARG" ;; + c) X11DIR="$OPTARG" ;; d) DModDir="$OPTARG" ;; t) DModTag="$OPTARG" ;; r) Restore="$OPTARG" ;;