Skip to content

Commit b202803

Browse files
mhuckapavoljuhas
andauthored
Apply suggestion from @pavoljuhas
Co-authored-by: Pavol Juhas <juhas@google.com>
1 parent 45dfe78 commit b202803

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

check/all

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,8 @@ done
8585
declare -a errors=()
8686

8787
function run() {
88-
local -r program="$1"
89-
echo "Running $program ..."
90-
$program || errors+=( "${program} failed" )
88+
echo "Running $* ..."
89+
"$@" || errors+=( "$* failed" )
9190
echo
9291
}
9392

0 commit comments

Comments
 (0)