···1010 local newestFile="${res[1]}"
11111212 # Update $SOURCE_DATE_EPOCH if the most recent file we found is newer.
1313- if [ "$time" -gt "$SOURCE_DATE_EPOCH" ]; then
1313+ if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then
1414 echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile"
1515 export SOURCE_DATE_EPOCH="$time"
1616