[pkg-perl-tools] 01/02: examples/mass-commit: `continue' in a function fails with newer bash.

gregor herrmann gregoa at debian.org
Sun Oct 9 23:18:35 UTC 2016


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

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit 051b41ff4311789274e4ad088de94da868992829
Author: gregor herrmann <gregoa at debian.org>
Date:   Mon Oct 10 01:16:49 2016 +0200

    examples/mass-commit: `continue' in a function fails with newer bash.
---
 examples/mass-commit | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/examples/mass-commit b/examples/mass-commit
index 195b44e..4d40730 100755
--- a/examples/mass-commit
+++ b/examples/mass-commit
@@ -28,7 +28,6 @@ usage() {
 skip() {
     echo >&2 "$1"
     cd ..
-    continue
 }
 
 run() {
@@ -76,9 +75,9 @@ shift $(($OPTIND - 1))
 for PKG in $(ls -1d */ | sed -e 's:/$::') ; do
     echo "Working on $PKG …"
 
-    cd $PKG || continue
-    dh_testdir || skip "$PKG doesn't look like a debian package."
-    [ -d .git ] || skip "No .git directory in $PKG."
+    cd $PKG     || continue
+    dh_testdir  || { skip "$PKG doesn't look like a debian package."; continue; }
+    [ -d .git ] || { skip "No .git directory in $PKG."; continue; }
     git checkout master
     if [ "$CDBS" = "1" ] ; then
         grep -q cdbs debian/control && skip "Skipping CDBS package $PKG."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list