Skip to content

Commit

Permalink
Remove use of which
Browse files Browse the repository at this point in the history
  • Loading branch information
pjcj committed Dec 29, 2023
1 parent fb979bd commit 8a6d4e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/dc
Expand Up @@ -17,7 +17,7 @@ shopt -s inherit_errexit

script=$(basename "$0")
readl=readlink
if which greadlink >&/dev/null; then readl=greadlink; fi
if command -v greadlink >&/dev/null; then readl=greadlink; fi
srcdir=$("$readl" -f "$(dirname "$0")")
readonly LOG_FILE="/tmp/$script.log"
_p() {
Expand Down

0 comments on commit 8a6d4e9

Please sign in to comment.