Repo containing scripts to be used with dovel, and git hooks that powers our web interface.
Author: blmayer (bleemayer@gmail.com)
Date: Fri Oct 6 16:57:00 2023 -0300
Parent: dafff4a
Clueanup on creategomod
diff --git a/post-receive b/post-receive index 54ea8be..0613aaf 100755 --- a/post-receive +++ b/post-receive @@ -258,11 +258,9 @@ creategomod() { TMP="$(mktemp -d)" mkdir -p "$TMP/dovel.email/$REPO@$1" git --work-tree="$TMP/dovel.email/$REPO@$1/" checkout -f main + (cd "$TMP" && zip "$OUT/@v/$1" -r * ) [ -d "$OUT/@latest" ] || mkdir -p "$OUT/@latest" - [ -d "$OUT/@v/$1" ] || mkdir -p "$OUT/@v/$1" - - (cd "$TMP" && zip "$OUT/@v/$1" -r * ) cp "$OUT/@v/$1.zip" "$OUT/@latest/" rm -rf "$TMP" }