Skip to content

Commit 6647924

Browse files
authored
Merge pull request #78 from benknoble/build-script
build(foreach): handle arguments robustly
2 parents 4d5a5e9 + 84a415c commit 6647924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ build_6x_7x_old () {
118118

119119
foreach () {
120120
declare -r command="${1}";
121-
declare -r args="${@:2}";
122-
for _arg in ${args}; do
121+
declare -r args=("${@:2}");
122+
for _arg in "${args[@]}"; do
123123
"${command}" "${_arg}";
124124
done;
125125
};

0 commit comments

Comments
 (0)