diff options
author | EuAndreh <eu@euandre.org> | 2021-06-23 08:07:14 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2021-06-23 08:07:14 -0300 |
commit | 57335b3e7c4c9e91c5747778180d611e5f15d144 (patch) | |
tree | 4b3892bb4d46a4f3bdde2a31eb1980f795db9378 /aux/workflow/commonmark.sh | |
parent | aux/workflow/assert-readme.sh: No need to create the public/ directory (diff) | |
download | git-permalink-57335b3e7c4c9e91c5747778180d611e5f15d144.tar.gz git-permalink-57335b3e7c4c9e91c5747778180d611e5f15d144.tar.xz |
aux/: Explicitly pass "public/" as a parameter to scripts
Diffstat (limited to 'aux/workflow/commonmark.sh')
-rwxr-xr-x | aux/workflow/commonmark.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/aux/workflow/commonmark.sh b/aux/workflow/commonmark.sh index 6016f51..7267145 100755 --- a/aux/workflow/commonmark.sh +++ b/aux/workflow/commonmark.sh @@ -1,11 +1,10 @@ #!/bin/sh set -eu -mkdir -p public - PROJECT_UC="$1" F="$2" -OUT="${3:-${F%.*}.html}" +OUTDIR="$3" +OUT="${4:-${F%.*}.html}" pandoc \ --toc \ @@ -17,4 +16,4 @@ pandoc \ -r commonmark \ -w html \ -H aux/workflow/favicon.html \ - < "$F" > "public/$OUT" + < "$F" > "$OUTDIR/$OUT" |