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 84eda68 commit 4d436e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/get-config-dir
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ fi
mkdir -p $FAI

# run get-config-dir-$method script if it exists
if which get-config-dir-$method &>/dev/null ; then
if command -v get-config-dir-$method &>/dev/null ; then
get-config-dir-$method
else
sendmon "TASKERROR get_fai_dir 22"
Expand Down

0 comments on commit 4d436e9

Please sign in to comment.