From dfb05f40fdc9f1d26a50c00cd3332eb10488c6d5 Mon Sep 17 00:00:00 2001 From: fatalerrors Date: Wed, 23 Oct 2024 20:07:50 +0200 Subject: [PATCH] fix bug when giving config file through command line --- init.sh | 2 +- lib/command_line.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/init.sh b/init.sh index 342cedd..1cf54ac 100755 --- a/init.sh +++ b/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")") diff --git a/lib/command_line.sh b/lib/command_line.sh index f7ed905..02002d2 100644 --- a/lib/command_line.sh +++ b/lib/command_line.sh @@ -92,7 +92,7 @@ read_commandline() shift 2 ;; "-f"|"--file") - export CONFFILES="$CONFFILES $opt" + export CONFFILES="$CONFFILES $2" shift 2 ;; "-s"|"--shell")