Skip to content

Commit

Permalink
fix: use exit code from yarn run on passthru
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Maga committed Mar 15, 2019
1 parent 6ef4390 commit f9d4f60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-run
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
set -euo pipefail
args=${*:-""}

if [[ ! -z "$args" ]]; then
if [[ -n "$args" ]]; then
yarn run $args
exit 0
exit $?
fi

if ! command -v fzf >/dev/null 2>&1; then
Expand Down

0 comments on commit f9d4f60

Please sign in to comment.