apply-live-updates.sh: copy without glob

cp $SRC/* $DEST will skip dotfiles in $SRC.
( cd $SRC; cp -a -t $DEST . ) will copy everything.
master
Will Woods 2011-10-20 13:57:23 -04:00 committed by Harald Hoyer
parent 028a79b8a1
commit 03b5494ca1
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,8 @@
#!/bin/sh
if [ -b /dev/mapper/live-rw ]; then
if [ "`echo /updates/*`" != "/updates/*" ]; then
if pushd /updates &>/dev/null; then
echo "Applying updates to live image..."
/bin/cp -a /updates/* $NEWROOT
/bin/cp -a -t $NEWROOT .
popd &>/dev/null
fi
fi