commit: 78c4e63d298ac503d531437063a46952d8c0553a
parent 7153add89d2fd320fd2e09bbe228ebb63f3ff151
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}"