aboutsummaryrefslogtreecommitdiff
path: root/sbolint
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-08-03 00:21:39 -0400
committerB. Watson <yalhcru@gmail.com>2021-08-03 00:21:39 -0400
commitd0452ca21a267561bc051015d524db9948c215b6 (patch)
treead992318f380e2a090d40e11cc97e5344a9d7c1b /sbolint
parent6180f30d3224ed1bbc10fab0a807fc08f53cbd9d (diff)
downloadsbostuff-d0452ca21a267561bc051015d524db9948c215b6.tar.gz
-current updates
Diffstat (limited to 'sbolint')
-rwxr-xr-xsbolint10
1 files changed, 5 insertions, 5 deletions
diff --git a/sbolint b/sbolint
index 0c70e61..abce9c3 100755
--- a/sbolint
+++ b/sbolint
@@ -148,7 +148,7 @@ DOS \r\n), and the last line of each must have a \n.
=item -
The SlackBuild script must exist, with mode 0755 (or 0644, if in a git repo),
-and be a I<#!/bin/sh> script.
+and be a I<#!/bin/bash> script.
=item -
@@ -991,7 +991,7 @@ sub curl_head_request {
# NOT going to police the script too much. Would end up rewriting most of
# the shell, in perl. Plus, it'd become a straitjacket. Here's what I'll
# implement:
-# - #!/bin/sh on line 1
+# - #!/bin/bash on line 1
# - PRGNAM must match $buildname
# - VERSION must match the .info VERSION
# - BUILD line must be present
@@ -1012,9 +1012,9 @@ sub check_script {
return unless scalar @lines;
if($lines[0] !~ /^#!/) {
- log_error("$file:1: missing or invalid shebang line (should be '#!/bin/sh')");
- } elsif($lines[0] !~ m,#!/bin/sh(?: (?:-e|-eu|-ue|-e -u|-u -e))?$,) {
- log_warning("$file:1: shebang line should be #!/bin/sh (possibly with -e/-u arg(s)), not '$lines[0]'");
+ log_error("$file:1: missing or invalid shebang line (should be '#!/bin/bash')");
+ } elsif($lines[0] !~ m,#!/bin/bash(?: (?:-e|-eu|-ue|-e -u|-u -e))?$,) {
+ log_warning("$file:1: shebang line should be #!/bin/bash (possibly with -e/-u arg(s)), not '$lines[0]'");
}
my $lineno = 0;