Skip to content

Commit

Permalink
set -e
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed Jan 11, 2015
1 parent c3c241b commit b6c4d94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tool/cover.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#/bin/sh
set -e

prof=${1:-".profile.cov"}
echo "mode: count" > $prof

cleanup() {
if [ $tmpprof != "" && -f $tmpprof ]; then
if [ $tmpprof != "" ] && [ -f $tmpprof ]; then
rm -f $tmpprof
fi
exit
Expand Down

0 comments on commit b6c4d94

Please sign in to comment.