Skip to content

Commit

Permalink
Prefer command -v
Browse files Browse the repository at this point in the history
  • Loading branch information
donovank authored and Mrfai committed Feb 14, 2020
1 parent 5c92b5c commit 84eda68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fai-divert
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ exit 0
[ "$1" ] || usage

# do not execute if command is not available
if ! $ROOTCMD which dpkg-divert >/dev/null 2>&1 ; then
if ! $ROOTCMD command -v dpkg-divert >/dev/null 2>&1 ; then
exit 0
fi

Expand Down

0 comments on commit 84eda68

Please sign in to comment.