update to upstream 5.3.4
[automated-distro-installer] / fai / config / hooks / updatebase.CENTOS
index 6f5813aa7ef4069eabb31af5d70ee3da8b67056d..a315b96c4752f6330757402434e618b1c9224a96 100755 (executable)
@@ -4,9 +4,9 @@ if [ ! -f $target/etc/resolv.conf ]; then
     cp /etc/resolv.conf $target/etc
 fi
 
-if [ "$verbose" ]; then
+if [ X$verbose = X1 ]; then
        echo "Updating base"
-       $ROOTCMD yum -y update 2>&1 | tee -a $LOGDIR/software.log
+       $ROOTCMD yum -y update |& tee -a $LOGDIR/software.log
 else
        $ROOTCMD yum -y update >> $LOGDIR/software.log
 fi