Skip to content

Commit

Permalink
Merge pull request #380 from stavamichal/fixForPerunBaseScript
Browse files Browse the repository at this point in the history
Bug fix for processing $@ in catch_error function
  • Loading branch information
stavamichal authored Nov 2, 2018
2 parents 16ebf56 + aefaef8 commit fe35c46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion slave/base/bin/perun
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function catch_error {
shift

exec 3>&1
ERR_TXT=`$@ 2>&1 1>&3`
ERR_TXT=`"$@" 2>&1 1>&3`
ERR=$?
exec 3>&-
if [ "$ERR_TXT" ]; then echo "$ERR_TXT" >&2; fi
Expand Down
8 changes: 8 additions & 0 deletions slave/base/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
perun-slave-base (3.1.13) stable; urgency=high

* Bug fix for processing of $@ in catch_error function.
* We need to use double quotes around $@ to prevent incorrect processing of
arguments in $@.

-- Michal Stava <[email protected]> Fri, 2 Nov 2018 11:27:00 +0100

perun-slave-base (3.1.12) stable; urgency=low

* Extend process of loging errors,
Expand Down

0 comments on commit fe35c46

Please sign in to comment.