summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@oper.io>2024-10-26 21:41:00 -0600
committerAaron Ball <nullspoon@oper.io>2024-10-26 21:41:53 -0600
commit18c52d2b2d2d634db3a46f38d5926844831fc507 (patch)
treea783a0404f9fe51bb89dde591f3c218402b82de1
parentd1cd894f18580e101b4f1922fdf7668890cd6970 (diff)
downloadmotd.sh-18c52d2b2d2d634db3a46f38d5926844831fc507.tar.gz
motd.sh-18c52d2b2d2d634db3a46f38d5926844831fc507.tar.xz
Fix md deploy: DEST variable to lowercase
-rwxr-xr-xhooks/post-receive4
1 files changed, 2 insertions, 2 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 9361eec..8022e90 100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
@@ -17,9 +17,9 @@ deploy() {
mkdir -p "$(dirname ${dest})"
fi
- cmark --to html "${SRC}" > "${DEST}"
+ cmark --to html "${SRC}" > "${dest}"
printf '<div class="paragraph datelastedit"><p>Last edited: %s</p></div>\n' \
- "$(date '+%F %T %Z')" >> "${DEST}"
+ "$(date '+%F %T %Z')" >> "${dest}"
elif [ "${i%%/*}" = 'src' ]; then
(cd src && make && make install DEPLOYDIR="${path}")

Generated by cgit