From d0452ca21a267561bc051015d524db9948c215b6 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 3 Aug 2021 00:21:39 -0400 Subject: -current updates --- sbolint | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sbolint') 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; -- cgit v1.2.3