Skip to content

Commit

Permalink
Replace which by command -v to solve issue #205
Browse files Browse the repository at this point in the history
  • Loading branch information
crramirez authored and patrick330602 committed Oct 11, 2021
1 parent 201aada commit c4cac35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wslusc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ if [[ "$cname_header" != "" ]]; then
# always absolute path
tmp_cname_header="$(readlink -f "$cname_header")"
if [ ! -f "$tmp_cname_header" ]; then
cname_header="$(which "$cname_header")"
cname_header="$(command -v "$cname_header")"
else
cname_header="$tmp_cname_header"
fi
Expand Down

0 comments on commit c4cac35

Please sign in to comment.