Make sure $SECONDS is set
authorMichael Prokop <devnull@localhost>
Fri, 28 Sep 2007 21:04:49 +0000 (23:04 +0200)
committerMichael Prokop <devnull@localhost>
Fri, 28 Sep 2007 21:04:49 +0000 (23:04 +0200)
debian/changelog
grml-live

index 6a4c673..2980869 100644 (file)
@@ -1,3 +1,9 @@
+grml-live (0.0.3) unstable; urgency=low
+
+  * Make sure $SECONDS is set.
+
+ -- Michael Prokop <mika@grml.org>  Fri, 28 Sep 2007 23:04:24 +0200
+
 grml-live (0.0.2) unstable; urgency=low
 
   * Add support for amd64.
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 "------------------------------------------------------------------------------"