Explorar o código

Update generate_config.sh

André Peters %!s(int64=7) %!d(string=hai) anos
pai
achega
de04016996
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      generate_config.sh

+ 2 - 2
generate_config.sh

@@ -4,11 +4,11 @@
 +set -o errexit
 +set -o errexit
 +set -o pipefail
 +set -o pipefail
 
 
-if grep --help 2>&1 | head -n 1 | grep -q -i "busybox"; then
+if grep --help 2>&1 | grep -q -i "busybox"; then
   echo "BusybBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""
   echo "BusybBox grep detected, please install gnu grep, \"apk add --no-cache --upgrade grep\""
   exit 1
   exit 1
 fi
 fi
-if cp --help 2>&1 | head -n 1 | grep -q -i "busybox"; then
+if cp --help 2>&1 | grep -q -i "busybox"; then
   echo "BusybBox cp detected, please install coreutils, \"apk add --no-cache --upgrade coreutils\""
   echo "BusybBox cp detected, please install coreutils, \"apk add --no-cache --upgrade coreutils\""
   exit 1
   exit 1
 fi
 fi