[devscripts] 01/02: checkbashisms: Recognize dash as a valid shell

James McCoy jamessan at debian.org
Fri Jan 8 04:18:27 UTC 2016


This is an automated email from the git hooks/post-receive script.

jamessan pushed a commit to branch master
in repository devscripts.

commit e7b49f6c3e405ff55fbc817fa75eec97669c9f65
Author: James McCoy <jamessan at debian.org>
Date:   Thu Jan 7 23:16:05 2016 -0500

    checkbashisms: Recognize dash as a valid shell
    
    Signed-off-by: James McCoy <jamessan at debian.org>
---
 debian/changelog         | 6 +++++-
 scripts/checkbashisms.pl | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7d158bf..1d62317 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-devscripts (2.15.11) UNRELEASED; urgency=medium
+devscripts (2.16.1) UNRELEASED; urgency=medium
 
   [ Antonio Terceiro ]
   * uscan:
@@ -6,6 +6,10 @@ devscripts (2.15.11) UNRELEASED; urgency=medium
       Patch by Alex Mestiashvili <mailatgoogl at gmail.com>
     - fix crash when --rename is passed
 
+  [ James McCoy ]
+  * checkbashisms:
+    + Recognize dash as a valid shell.
+
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 05 Jan 2016 13:01:05 -0200
 
 devscripts (2.15.10) unstable; urgency=low
diff --git a/scripts/checkbashisms.pl b/scripts/checkbashisms.pl
index cd7919c..81ff82e 100755
--- a/scripts/checkbashisms.pl
+++ b/scripts/checkbashisms.pl
@@ -154,7 +154,7 @@ foreach my $filename (@ARGV) {
 		if ($interpreter =~ m,/bash$,) {
 		    $mode = 1;
 		}
-		elsif ($interpreter !~ m,/(sh|posh)$,) {
+		elsif ($interpreter !~ m,/(sh|dash|posh)$,) {
 ### ksh/zsh?
 		    warn "script $display_filename does not appear to be a /bin/sh script; skipping\n";
 		    $status |= 2;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/devscripts.git



More information about the devscripts-devel mailing list