diff options
Diffstat (limited to 'bin/reproducible_common.sh')
-rwxr-xr-x | bin/reproducible_common.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index fc15b868..b354f42b 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -496,6 +496,9 @@ calculate_build_duration() { } print_out_duration() { + if [ -z "$DURATION" ]; then + return + fi local HOUR=$(echo "$DURATION/3600"|bc) local MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc) local SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc) |