diff options
author | Jonas Smedegaard <dr@jones.dk> | 2024-02-07 21:04:30 +0100 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2024-02-07 21:04:30 +0100 |
commit | dad5d36e221d1828f63297cffefac7136f549aea (patch) | |
tree | 16582fb52efa38b88f4c9c2b9e82f36dd4d314d2 | |
parent | cda1ad0e0b99f2e5195db71486a3ecfb55f26e6b (diff) |
check existence with command (not which)
-rwxr-xr-x | bin/any2qmd.sh | 2 |
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 |