Browse Source

Drop `which` in favor of the more standard `command -v`

Alois Mahdal 3 years ago
parent
commit
4903a49feb
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bin/mdvimb

+ 1
- 1
bin/mdvimb View File

@@ -140,7 +140,7 @@ main() {
140 140
     MdFile=$1; shift
141 141
     debug -v MDVIMB__CONVERTER MDVIMB__CONFIG_HOME MDVIMB__STYLE
142 142
     debug -v MdFile converter NoOpen Wrap Style ConfigHome
143
-    converterpath=$(which "$converter") \
143
+    converterpath=$(command -v "$converter") \
144 144
      || die "converter not available: $converter"
145 145
     debug -v converterpath
146 146
     think "using converter: $converter"