Merge pull request #51217 from mayflower/source-date-epoch-fix-warning

set-source-date-epoch-to-latest: fix warning

authored by John Ericson and committed by GitHub ed71691a 25487a3a

+1 -1
+1 -1
pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh
··· 10 10 local newestFile="${res[1]}" 11 11 12 12 # Update $SOURCE_DATE_EPOCH if the most recent file we found is newer. 13 - if [ "$time" -gt "$SOURCE_DATE_EPOCH" ]; then 13 + if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then 14 14 echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile" 15 15 export SOURCE_DATE_EPOCH="$time" 16 16