mirror of
				https://gitlab.com/octtspacc/OcttKB
				synced 2025-06-06 00:29:12 +02:00 
			
		
		
		
	Update 2 files
- /GitLab.CrossRepoSync.sh - /GitLab.Main.sh
This commit is contained in:
		| @@ -1,13 +1,8 @@ | ||||
| #!/bin/sh | ||||
| TargetRepo="OcttKB.Web" | ||||
| cd ./Wiki | ||||
| tiddlywiki \ | ||||
| 	--verbose \ | ||||
| 	--output ./Output.tmp \ | ||||
| 	--rendertiddler "$:/core/save/all" "index.html" "text/plain" | ||||
| git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./$TargetRepo | ||||
| cd ./$TargetRepo | ||||
| cp -r ../Output.tmp/index.html ./public/index.html | ||||
| git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./Repo-$TargetRepo | ||||
| cd ./Repo-$TargetRepo | ||||
| cp -v ../Output.tmp/index.html ./public/index.html | ||||
| git add . | ||||
| git commit -m "OcttKB Cross-Repo Sync (Raw to HTML)" | ||||
| git push | ||||
|   | ||||
| @@ -1,6 +1,16 @@ | ||||
| #!/bin/sh | ||||
| sh ./OcttKB.EmptyDate.sh | ||||
| 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 | ||||
|  | ||||
| CommitCheck="$(git log -1 --pretty=%B)" | ||||
| CommitMsg0="OcttKB Cross-Repo Sync" | ||||
| [ "$CommitCheck" != "$CommitMsg0 (HTML to Raw)" ] && [ "$CommitCheck" != "$CommitMsg0 (Raw to HTML)" ] && sh ./GitLab.CrossRepoSync.sh || true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user