commit: 55283ffad62ac77a5e3a6997c47cf3bbb8c799bf
parent c4b878e97267d8d4727e757fb220db382b6aa7a7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 11 Jul 2025 03:21:23 +0200
post-update.build: copy self instead of requiring a symlink
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/post-update.build b/post-update.build
@@ -8,4 +8,9 @@ export GIT_WORK_TREE="${GIT_DIR/%.git/.work}"
set -x
+if ! cmp -s "$0" "${GIT_WORK_TREE}/post-update.build" ; then
+ cp -p "${GIT_WORK_TREE}/post-update.build" "$0"
+ exec "$0" "$@"
+fi
+
samu -C "${GIT_WORK_TREE}"