Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=b8f541f43fb12fd7b3f09d9cd125e49b64f99225
commit b8f541f43fb12fd7b3f09d9cd125e49b64f99225 Author: Michel Hermier <[email protected]> Date: Thu Nov 22 17:48:48 2012 +0100 scripts/makepkg * Fix minor bug in duration function $(( ... )) does not understand string numbers. diff --git a/scripts/makepkg b/scripts/makepkg index 8918d98..52f36e7 100755 --- a/scripts/makepkg +++ b/scripts/makepkg @@ -185,9 +185,9 @@ strip_url() { seconds_to_human_duration() { local hours minutes seconds time - hours="$(( "$1" / 3600 ))" - minutes="$(( "$1" % 3600 / 60 ))" - seconds="$(( "$1" % 3600 % 60 ))" + hours="$(( $1 / 3600 ))" + minutes="$(( $1 % 3600 / 60 ))" + seconds="$(( $1 % 3600 % 60 ))" if [ "$hours" -gt 0 ]; then time+=" ${hours}h" _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
