OcttKB/GitLab.Main.sh

17 lines
473 B
Bash
Raw Normal View History

2023-02-28 12:07:24 +01:00
#!/bin/sh
2023-03-03 13:06:20 +01:00
sh ./OcttKB.EmptyDate.sh
2023-02-28 12:07:24 +01:00
sh ./SetupGitProfile.sh
tiddlywiki \
./Wiki \
--verbose \
--output ./Output.tmp \
--rendertiddler "$:/core/save/all" "index.html" "text/plain"
mkdir -vp ./public
cp -v ./Output.tmp/index.html ./public/index.html
2023-02-28 12:07:24 +01:00
CommitCheck="$(git log -1 --pretty=%B)"
CommitMsg0="OcttKB Cross-Repo Sync"
2023-03-03 13:06:20 +01:00
[ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true