aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-05-15 04:53:14 -0400
committerB. Watson <urchlay@slackware.uk>2023-05-15 04:53:14 -0400
commit6ba8438b6f9956a1fb901312b8d4601a77458d25 (patch)
tree038b0962bac1e1e1a0b5590d47805b5f04b602e6 /sbolint
parent55c4c2d529bfe1ba3de48ccd2c10266a989992d3 (diff)
downloadsbo-maintainer-tools-6ba8438b6f9956a1fb901312b8d4601a77458d25.tar.gz
sbolint: regex tweaks. WIP.
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbolint b/sbolint
index dec7d46..3b252dc 100755
--- a/sbolint
+++ b/sbolint
@@ -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/) {