diff options
author | B. Watson <yalhcru@gmail.com> | 2021-08-03 00:21:39 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2021-08-03 00:21:39 -0400 |
commit | d0452ca21a267561bc051015d524db9948c215b6 (patch) | |
tree | ad992318f380e2a090d40e11cc97e5344a9d7c1b /sbolint | |
parent | 6180f30d3224ed1bbc10fab0a807fc08f53cbd9d (diff) | |
download | sbostuff-d0452ca21a267561bc051015d524db9948c215b6.tar.gz |
-current updates
Diffstat (limited to 'sbolint')
-rwxr-xr-x | sbolint | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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; |