From ee385a36fe753272cadac0afd7f19b123a0c3d54 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 14 Jun 2016 13:55:33 +0200 Subject: apt-key: don't search PATH if command is a path already --- cmdline/apt-key.in | 1 + 1 file changed, 1 insertion(+) (limited to 'cmdline') 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" -- cgit v1.2.3