From 4287075bb0d1868c4638f8ff5031e72dbecb5f91 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 25 Nov 2024 19:34:32 +0100 Subject: fix option parsing --- bin/any2qmd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/any2qmd.sh b/bin/any2qmd.sh index 021b511..0abe6ce 100755 --- a/bin/any2qmd.sh +++ b/bin/any2qmd.sh @@ -4,7 +4,7 @@ set -eu INFILE=$1 -OUTFILE="$(dirname "$INFILE")/${2:-index.qmd}" +OUTFILE="${2:-$(dirname "$INFILE")/index.qmd}" if command -v quarto > /dev/null 2>&1; then PANDOC="quarto pandoc" -- cgit v1.2.3