X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=build%2Finstaller;h=39e62e61be2d068d632482b9fb765f8eccf2ced1;hb=99dbc539d5ce9a0b119e7b59ed943c129f617ec0;hp=b06ca50947c45b4e5b89301abd27284f3ac16c5b;hpb=a8447b54901547cbc19cbb688b9c75d33a6f701a;p=libucw.git diff --git a/build/installer b/build/installer index b06ca509..39e62e61 100755 --- a/build/installer +++ b/build/installer @@ -20,14 +20,19 @@ 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 "$SH_AUTO_CONFIRM" ] ; then + read x + else + x="$SH_AUTO_CONFIRM" + echo "$x" + fi + 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