Skip to content

Commit

Permalink
apt-key: don't search PATH if command is a path already
Browse files Browse the repository at this point in the history
  • Loading branch information
DonKult committed Jun 14, 2016
1 parent 5e5607e commit ee385a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmdline/apt-key.in
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit ee385a3

Please sign in to comment.