[pkg-perl-tools] 03/03: dpt-gc: redirect stderr in check for gnu parallel to avoid confusing error message

gregor herrmann gregoa at debian.org
Sun Jan 28 03:39:54 UTC 2018


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 0fa44bef3d0254ea43fc3182af7aed84d3feec80
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Jan 28 04:37:18 2018 +0100

    dpt-gc: redirect stderr in check for gnu parallel to avoid confusing error message
    
    Gbp-Dch: Ignore
---
 scripts/gc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/gc b/scripts/gc
index a9fdab3..a06d322 100755
--- a/scripts/gc
+++ b/scripts/gc
@@ -27,7 +27,7 @@ while getopts vshp opt; do
         ;;
         p)
             if which parallel > /dev/null ; then
-                if parallel --will-cite < /dev/null > /dev/null; then
+                if parallel --will-cite < /dev/null > /dev/null 2>&1; then
                     PARALLEL=GNU
                 else
                     PARALLEL="moreutils"

-- 
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