xbps-src: update-check: avoid bashism, requested by @chneukirchen.

This commit is contained in:
Juan RP 2014-11-01 15:23:51 +01:00
parent 1a90c55fcf
commit 07dd4ad339
1 changed files with 1 additions and 1 deletions

View File

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