summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2024-11-25 19:34:32 +0100
committerJonas Smedegaard <dr@jones.dk>2024-11-25 19:34:32 +0100
commit4287075bb0d1868c4638f8ff5031e72dbecb5f91 (patch)
tree4a742779e0acddc36de9982e5e2fe03517dfa4c9
parent129dea76ec4cc2513f6164290ec50524f9a00f0f (diff)
fix option parsing
-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"