Skip to content

Commit

Permalink
@reached_if fails for more complex cases #113 : fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Dec 10, 2022
1 parent bbe76fa commit c48f68e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ BEGIN {
function makesure() {
while (getline > 0) {
Lines[NR]=$0
if ($1 ~ /^@/ && "@define" != $1) reparseCli()
if ($1 ~ /^@/ && "@define" != $1 && "@reached_if" != $1) reparseCli()
if ("@options" == $1) handleOptions()
else if ("@define" == $1) handleDefine()
else if ("@shell" == $1) handleShell()
Expand Down
2 changes: 2 additions & 0 deletions tests/6_reached_if.tush
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ $ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if.sh --resolved bbb
| Resolved goals to reach for 'bbb':

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g1
| goal 'g1' [already satisfied].

$ cd "$MYDIR"; ./$MAKESURE -f tests/6_reached_if_issue_113.sh g2
| goal 'g2' ...
| must show

0 comments on commit c48f68e

Please sign in to comment.