]> git.saurik.com Git - apt.git/blobdiff - test/integration/framework
replace "which" with "command -v" for portability
[apt.git] / test / integration / framework
index 3e159f6a9be95a0a0faf5f49266c313d551698da..8760f3db8b907251ca9ac017b1872f71323f1305 100644 (file)
@@ -1205,7 +1205,7 @@ changetowebserver() {
 }
 
 changetohttpswebserver() {
-       if ! which stunnel4 >/dev/null; then
+       if ! command -v stunnel4 >/dev/null 2>&1; then
                msgdie 'You need to install stunnel4 for https testcases'
        fi
        if [ ! -e "${TMPWORKINGDIRECTORY}/aptarchive/aptwebserver.pid" ]; then