Skip to content

Commit

Permalink
Use bash magic to set exit code
Browse files Browse the repository at this point in the history
  • Loading branch information
eschnett committed May 24, 2018
1 parent ee09ffc commit 0566e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ $2 >"$dir/output2"
diff -u "$dir/output1" "$dir/output2"
retval=$?
rm -rf "$dir"
return "$retval"
(exit "$retval")

0 comments on commit 0566e25

Please sign in to comment.