Skip to content

Commit

Permalink
Have wrapper script return zq's exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
philrz committed Feb 29, 2024
1 parent 3c5b3c6 commit 4e67ac3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zq_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ TMP_STDERR=$(mktemp)_zq_wrapper_stderr.txt
TMP_CALLED_WITH=$(mktemp)
echo "I was called with: $@" > ${TMP_CALLED_WITH}_zq_wrapper_called_with.txt
../../apps/zui/zdeps/zq "$@" > $TMP_STDOUT 2> $TMP_STDERR
ERR="$?"
cat $TMP_STDOUT
cat $TMP_STDERR >&2
exit $ERR

0 comments on commit 4e67ac3

Please sign in to comment.