summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-02-07 21:04:30 +0100
committerJonas Smedegaard <dr@jones.dk>2024-02-07 21:04:30 +0100
commitdad5d36e221d1828f63297cffefac7136f549aea (patch)
tree16582fb52efa38b88f4c9c2b9e82f36dd4d314d2 /bin
parentcda1ad0e0b99f2e5195db71486a3ecfb55f26e6b (diff)
check existence with command (not which)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/any2qmd.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/any2qmd.sh b/bin/any2qmd.sh
index 03d4f5f..ea978b8 100755
--- a/bin/any2qmd.sh
+++ b/bin/any2qmd.sh
@@ -6,7 +6,7 @@ INFILE=$1
OUTFILE="$(dirname "$INFILE")/${2:-index.qmd}"
-if which -s quarto; then
+if command -v quarto > /dev/null 2>&1; then
PANDOC="quarto pandoc"
else
PANDOC=pandoc