Skip to content

Commit

Permalink
./makesure -l doesn't delete temp file in presense of @define #78
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Nov 21, 2021
1 parent f19e6c8 commit 16c7a25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 1 addition & 2 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function makesure() {
else handleCodeLine($0)
}
doWork()
realExit(0)
}

function prepareArgs( i,arg) {
Expand Down Expand Up @@ -473,8 +474,6 @@ body,goalBody,goalBodies,resolvedGoals,exitCode, t0,t1,t2, goalTimed, list) {
if (exitCode != 0)
realExit(exitCode)
}

realExit(0)
}
}

Expand Down
7 changes: 2 additions & 5 deletions tests/15_lib.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@

# TODO found one other bug, but let's fix it separately
#@define HELLO="Hello"
@define HELLO="Hello"

@lib
f1 () {
# TODO found one other bug, but let's fix it separately
#echo "$HELLO $1"
echo "Hello $1"
echo "$HELLO $1"
}

@goal g1
Expand Down

0 comments on commit 16c7a25

Please sign in to comment.