Skip to content

Commit

Permalink
Diminish the notion of prelude #84 : fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Dec 8, 2021
1 parent 60fcd1c commit 5f4883f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makesurefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
@goal debug @private
@doc shows software versions
AWK="${AWK:-awk}"
printf "%s: " "$AWK"
case "$AWK" in
*mawk*) "$AWK" -W version 2>&1 | head -n 1
;;
Expand Down
2 changes: 1 addition & 1 deletion makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ function getMyDir(makesurefilePath) {
}

function handleCodeLine(line) {
if (isPrelude() && line !~ /^\s*#/ && trim(line) != "" && !ShellInPreludeErrorShown++)
if (isPrelude() && line !~ /^[ \t]*#/ && trim(line) != "" && !ShellInPreludeErrorShown++)
addError("Shell code is not allowed in prelude area")
else
addCodeLine(line)
Expand Down

0 comments on commit 5f4883f

Please sign in to comment.