fix bug when giving config file through command line
This commit is contained in:
2
init.sh
2
init.sh
@@ -36,7 +36,7 @@ export LC_ALL=C
|
||||
export LANG=C
|
||||
|
||||
# Version of init
|
||||
export VERSION="0.99.21"
|
||||
export VERSION="0.99.22"
|
||||
|
||||
# Store script's path (realpath -s resolve symlinks if init.sh is a symlink)
|
||||
export MYPATH=$(dirname "$(realpath -s "$0")")
|
||||
|
||||
@@ -92,7 +92,7 @@ read_commandline()
|
||||
shift 2
|
||||
;;
|
||||
"-f"|"--file")
|
||||
export CONFFILES="$CONFFILES $opt"
|
||||
export CONFFILES="$CONFFILES $2"
|
||||
shift 2
|
||||
;;
|
||||
"-s"|"--shell")
|
||||
|
||||
Reference in New Issue
Block a user