We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b25a334 commit 4e3a6b5Copy full SHA for 4e3a6b5
scripts/variablesparser.sh
@@ -9,7 +9,7 @@ declare -a confresult=()
9
if [ -f "$CONFFILE" ]; then
10
OLD_IFS="$IFS"
11
IFS=$'\n'
12
- val=($(cat "$CONFFILE" | grep -v '#' | grep -v -vE '^\s*$' | sed -re "s/('|\") /'\n/g" -e "/(\"|')/! s/\s/\n/g" -e 's/(\s)(-.*=\")/\n\2/'))
+ val=($(cat "$CONFFILE" | grep -vE '^\s*#' | grep -v -vE '^\s*$' | sed -re "s/('|\") /'\n/g" -e "/(\"|')/! s/\s/\n/g" -e 's/(\s)(-.*=\")/\n\2/'))
13
IFS="$OLD_IFS"
14
15
for i in "${val[@]}"
0 commit comments