Make sure $SECONDS is set
[grml-live.git] / grml-live
index 19b9cd1..a68dfa8 100755 (executable)
--- a/grml-live
+++ b/grml-live
@@ -390,7 +390,7 @@ fi
 # }}}
 
 # finalize {{{
-SECONDS="$[$(cut -d . -f 1 /proc/uptime)-$start_seconds]"
+[ -n "$start_seconds" ] && SECONDS="$[$(cut -d . -f 1 /proc/uptime)-$start_seconds]"
 einfo "Sucessfully finished execution of $PN [running ${SECONDS} seconds]" ; eend 0
 log "Sucessfully finished execution of $PN [running ${SECONDS} seconds]"
 log "------------------------------------------------------------------------------"