summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/any2qmd.sh2
1 files changed, 1 insertions, 1 deletions
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"