Skip to content

Commit 7ba9feb

Browse files
committed
If environment variable REPRODUCIBLE==1, use empty BUILD_UTC
Signed-off-by: Jeffrey H. Johnson <[email protected]>
1 parent 3bd4892 commit 7ba9feb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

make_git_source_version.sh

+4
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,10 @@ BUILD_UTC="$(get_utc_date)" ||
164164
"Error: get_utc_date() failed."
165165
exit 1
166166
}
167+
test "${REPRODUCIBLE:-}" = "1" &&
168+
{
169+
BUILD_UTC=""
170+
}
167171

168172
# shellcheck disable=SC1003
169173
printf '%s\n' \

0 commit comments

Comments
 (0)