X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/0cfec3ab589c6309bf284438d2148c7742cdaf10..cc0a4c82b3c132abba9b9ec35fd61bc8b45a1b80:/cmdline/apt-key.in diff --git a/cmdline/apt-key.in b/cmdline/apt-key.in index ede6be4c3..7c12c72a3 100644 --- a/cmdline/apt-key.in +++ b/cmdline/apt-key.in @@ -23,6 +23,7 @@ requires_root() { } command_available() { + if [ -x "$1" ]; then return 0; fi # command -v "$1" >/dev/null 2>&1 # not required by policy, see #747320 # which "$1" >/dev/null 2>&1 # is in debianutils (essential) but not on non-debian systems local OLDIFS="$IFS"