From dad5d36e221d1828f63297cffefac7136f549aea Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Wed, 7 Feb 2024 21:04:30 +0100 Subject: check existence with command (not which) --- bin/any2qmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3