Skip to content

Commit

Permalink
Parameterized goals #115 rfct
Browse files Browse the repository at this point in the history
  • Loading branch information
xonixx committed Jan 19, 2023
1 parent 5b1b19a commit 103bfc8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions makesure.awk
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,7 @@ function checkValidDefineSyntax(line) {

function handleShell() {
checkPreludeOnly()

Shell = trim($2)

if (!(Shell in SupportedShells))
if (!((Shell = $2) in SupportedShells))
addError("Shell '" Shell "' is not supported")
}

Expand All @@ -183,9 +180,7 @@ function started(mode) {

function handleLib( libName) {
started("lib")

libName = trim($2)
if (libName in Lib) {
if ((libName = $2) in Lib) {
addError("Lib '" libName "' is already defined")
}
arrPush(LibNames, libName)
Expand Down

0 comments on commit 103bfc8

Please sign in to comment.