Browse Source

Adjust for deprecation of which(1)

Christoph Biedl 3 years ago
parent
commit
1b69662bc1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      debian/patches/local.enhance-test-script.patch

+ 2 - 2
debian/patches/local.enhance-test-script.patch

@@ -21,9 +21,9 @@ Last-Update: 2014-07-22
 +    exit 2
 +    exit 2
 +fi
 +fi
 +
 +
-+if [ -x "$(which gzcat)" ] ; then
++if [ -x "$(command -v gzcat)" ] ; then
 +    ZCAT=gzcat
 +    ZCAT=gzcat
-+elif [ -x "$(which zcat)" ] ; then
++elif [ -x "$(command -v zcat)" ] ; then
 +    ZCAT=zcat
 +    ZCAT=zcat
 +else
 +else
 +    echo "Have neither zcat or gzcat"
 +    echo "Have neither zcat or gzcat"