From c9b67d65209e0f8789d491a1756b55931be2ee68 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 6 Feb 2013 20:25:52 +0100 Subject: [PATCH] installer.sh: make INSTALL_CLONE_MODE check more clear --- installer/installer.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index 909b727..0d31518 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -324,14 +324,14 @@ dcop_write $"Copying files..." 15 prog=15 for d in etc bin boot lib lib64 opt sbin srv usr var root; do - [ ! "$INSTALL_CLONE_MODE" == "1" -a -e /squashfs/$d ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` + [ "$INSTALL_CLONE_MODE" != "1" ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` [ -e $canonical_dir ] || continue DIR_SPACE=`du -sxm $canonical_dir | awk '{ print $1; }'` TOTAL_SPACE=`expr $TOTAL_SPACE + $DIR_SPACE` done for d in etc bin boot lib lib64 opt sbin srv usr var root; do - [ ! "$INSTALL_CLONE_MODE" == "1" -a -e /squashfs/$d ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` + [ "$INSTALL_CLONE_MODE" != "1" ] && canonical_dir=/squashfs/$d || canonical_dir=`readlink -f /$d` [ -e $canonical_dir ] || continue cp -av $canonical_dir $MOUNTPOINT/ | cp_parser || { echo $"Error: cannot copy $canonical_dir to $MOUNTPOINT; aborting." >&2