2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2026-09-02 07:26:03 +00:00

fix(build): preserve source epoch failures

This commit is contained in:
Vinícius Ferrão
2026-08-22 01:33:01 -03:00
parent a54f7bc3ea
commit 79cf9add2a
+2 -1
View File
@@ -4,7 +4,8 @@ set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
if [ -z "${SOURCE_DATE_EPOCH:-}" ] && [ -f "$SCRIPT_DIR/Gitepoch" ]; then
export SOURCE_DATE_EPOCH=$(cat "$SCRIPT_DIR/Gitepoch")
SOURCE_DATE_EPOCH=$(cat "$SCRIPT_DIR/Gitepoch")
export SOURCE_DATE_EPOCH
fi
REPO_ROOT="$SCRIPT_DIR"