We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbb218f commit 7307789Copy full SHA for 7307789
bundle-script.sh
@@ -32,7 +32,8 @@ fi
32
shopt -s extglob
33
echo "" > "$output_script"
34
line_no=1
35
-while read line
+
36
+while IFS= read -r line
37
do
38
if [[ "$line" =~ ^" "*("source "|". ").* ]]
39
then
@@ -88,9 +89,9 @@ then
88
89
expected="${KW_ARGS['--exit']-$expected}"
90
91
bash "$output_script" $check_args > /dev/null 2>&1 || rc=$?
- if [[ $rc -ne $expected ]]
92
+ if [[ "$rc" -ne "$expected" ]]
93
- echo "ERROR: The bundled script doesn't seem to work ('bash \"$output_script\" $check_args' terminated with exit code $?)!" >&2
94
+ echo "ERROR: The bundled script doesn't seem to work ('bash \"$output_script\" $check_args' terminated with exit code $rc not $expected)!" >&2
95
exit 2
96
fi
97
0 commit comments