Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=pacman-g2.git;a=commitdiff;h=c741482ef98b5bf6bf6092b33a2d3790b56db340

commit c741482ef98b5bf6bf6092b33a2d3790b56db340
Author: Miklos Vajna <[EMAIL PROTECTED]>
Date:   Sat May 17 17:13:17 2008 +0200

makepkg: fix a warning when using bash's -ge on empty strings

diff --git a/scripts/makepkg b/scripts/makepkg
index 56e2430..33d0f1a 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -1239,6 +1239,7 @@ if grep -i -q "^# Compiling Time: [~0-9\.]\+ SBU$" 
$BUILDSCRIPT && \
warning "Cannot find the bc binary! Is bc installed? Skipping calculating the 
estimated build time."
else
secs=`$ECHO "$pkgsbu*$SBU"|bc /dev/stdin|sed 's/\.[0-9]*$//'`
+               [ -z "$secs" ] && secs=0
if [ $secs -ge 3600 ]; then
hrs=`$ECHO $(($secs/3600))`
secs=`$ECHO $(($secs%3600))`
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to