From: Pavel Charvat Date: Tue, 4 Sep 2007 16:42:04 +0000 (+0200) Subject: bugfix in the installer X-Git-Tag: holmes-import~506^2~17 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=46a34c7361afa8b4273f625d864c7f65b4704d59;p=libucw.git bugfix in the installer --- diff --git a/build/installer b/build/installer index b06ca509..b5bf16f2 100755 --- a/build/installer +++ b/build/installer @@ -20,14 +20,14 @@ for a in $SH_CONFIGS ; do if [ ! -f $DEST/cf/$a ] ; then echo "cf/$a: new, installed" cp run/cf/$a $DEST/cf/$a - elif [ $a == catalog-rules ] ; then + elif [ $a = catalog-rules ] ; then echo "cf/$a: will be regenerated automatically" elif diff -u $DEST/cf/$a run/cf/$a ; then echo "cf/$a: no differences" else echo -n "cf/$a differs, replace it [Yn]? " read x - if [ -z "$x" -o "$x" == "y" -o "$x" == "Y" ] ; then + if [ -z "$x" -o "$x" = "y" -o "$x" = "Y" ] ; then echo "cf/$a: replacing and keeping the old version as cf/$a.old" mv $DEST/cf/$a $DEST/cf/$a.old cp run/cf/$a $DEST/cf/$a