diff options
author | B. Watson <urchlay@slackware.uk> | 2023-05-15 04:53:14 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2023-05-15 04:53:14 -0400 |
commit | 6ba8438b6f9956a1fb901312b8d4601a77458d25 (patch) | |
tree | 038b0962bac1e1e1a0b5590d47805b5f04b602e6 | |
parent | 55c4c2d529bfe1ba3de48ccd2c10266a989992d3 (diff) | |
download | sbo-maintainer-tools-6ba8438b6f9956a1fb901312b8d4601a77458d25.tar.gz |
sbolint: regex tweaks. WIP.
-rwxr-xr-x | sbolint | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1257,7 +1257,7 @@ sub check_script { } } elsif(/^TMP=(\S+)/) { $tmp = dequote($1); - if($tmp ne '${TMP:-/tmp/SBo}') { + if($tmp !~ m,\$\{TMP:-(?:/tmp/SBo|(["'])/tmp/SBo\1)\},) { log_error("$file:$lineno: TMP=\${TMP:-/tmp/SBo} is required"); } } elsif(/^PKG=(\S+)/) { @@ -1267,7 +1267,7 @@ sub check_script { } } elsif(/^OUTPUT=(\S+)/) { $output = dequote($1); - if($output ne '${OUTPUT:-/tmp}') { + if($output !~ m,\$\{OUTPUT:-(?:/tmp|(["'])/tmp\1)\},) { log_error("$file:$lineno: OUTPUT=\${OUTPUT:-/tmp} is required"); } } elsif(/^[^#]*\$\{?CWD\}?\/doinst\.sh/) { |