buildd/functions.sh: use dash-compliant subtraction
authorChristian Hofstaedtler <ch@grml.org>
Tue, 8 Nov 2011 11:50:00 +0000 (12:50 +0100)
committerChristian Hofstaedtler <ch@grml.org>
Tue, 8 Nov 2011 12:10:21 +0000 (13:10 +0100)
buildd/functions.sh

index 60a3b5a..9aa4cd6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 # Filename:      /usr/share/grml-live/buildd/functions.sh
 # Purpose:       main function file for grml-live buildd
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
@@ -72,7 +72,7 @@ grml_live_run() {
              >/var/log/grml-buildd.stdout \
             2>/var/log/grml-buildd.stderr ; RC=$?
   TIME_END=$(date +%s)
-  let WALLTIME=$TIME_END-$TIME_START
+  WALLTIME=$(($TIME_END-$TIME_START))
 
   if [ "$RC" = "0" ] ; then
      RC_INFO=success