fix: drop which in favor of command -v

This commit is contained in:
Jose Diaz-Gonzalez committed 2021-10-28 18:22:20 -04:00
1 parent b146483940
commit 6c709f2386
7 files changed
+7 -8

No files matched your search

+1 -1
View File
@@ -160,7 +160,7 @@ main() {
}
}
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]] || [[ "$0" == $(which dokku) ]]; then
if [[ "$0" == "dokku" ]] || [[ "$0" == *dokku_client.sh ]] || [[ "$0" == $(command -v dokku) ]]; then
main "$@"
exit $?
fi