commit: f3343dc828cbf36d7f6e313358ee5d3c62906e00
parent 5900584f370ec762ae3eeb27a8ed7379447e9930
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 4 Apr 2023 13:10:42 +0200
post-update.build: Fix missing GIT_DIR and GIT_WORK_TREE
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/post-update.build b/post-update.build
@@ -3,9 +3,9 @@
# SPDX-License-Identifier: MIT
set -e
-is_ok(){ echo ' [OK]'; }
-base=$(pwd|sed 's|\.git$||')
+export GIT_DIR="$(pwd)"
+export GIT_WORK_TREE="${GIT_DIR/%.git/.work}"
set -x
-samu -C "${base}.work"
+samu -C "${GIT_WORK_TREE}"