From 07dd4ad339e61833c0c55d8b009faad28e2cfc3e Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 1 Nov 2014 15:23:51 +0100 Subject: [PATCH] xbps-src: update-check: avoid bashism, requested by @chneukirchen. --- common/xbps-src/shutils/update_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/xbps-src/shutils/update_check.sh b/common/xbps-src/shutils/update_check.sh index 77f72eca3ca..1d78e415f02 100644 --- a/common/xbps-src/shutils/update_check.sh +++ b/common/xbps-src/shutils/update_check.sh @@ -3,7 +3,7 @@ update_check() { local i p url rx found_version consider - if ! command -v curl &>/dev/null; then + if ! type curl >/dev/null 2>&1; then echo "ERROR: cannot find \`curl' executable!" return 1 fi