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
parent
028a79b8a1
commit
03b5494ca1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue