fix(justfile): bash syntax error if SOURCE_GIT_HASH was set

This commit is contained in:
Daniel Fox Franke 2026-06-24 11:03:08 -04:00 committed by GitHub
parent a57265f480
commit b877ea6573
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -95,7 +95,7 @@ vendor:
if [ -z "${SOURCE_DATE_EPOCH}" ]; then
SOURCE_DATE_EPOCH=$(git log -1 --format='%ct')
fi
if [ -z "${SOURCE_GIT_HASH}"]; then
if [ -z "${SOURCE_GIT_HASH}" ]; then
SOURCE_GIT_HASH=$(git rev-parse HEAD)
fi
source_date="$(date -d "@${SOURCE_DATE_EPOCH}" "+%Y-%m-%d")"