Bugfix. It works properly if we use quotes.

This commit is contained in:
Igor Pečovnik 2015-12-18 11:30:21 +01:00
parent 38f39a48ed
commit 1435d5d605

View File

@ -184,8 +184,8 @@ KILLPROC=$(ps -uax | pgrep ntpd | tail -1); if [ -n "$KILLPROC" ]; then k
KILLPROC=$(ps -uax | pgrep dbus-daemon | tail -1); if [ -n "$KILLPROC" ]; then kill -9 $KILLPROC; fi
display_alert "Closing debootstrap process and preparing cache." "" "info"
tar cpf - --directory=$DEST/cache/sdcard/ --exclude=dev/* --exclude=proc/* --exclude=run/* --exclude=tmp/* \
--exclude=mnt/* --exclude=sys/* . | pigz > $DEST/cache/rootfs/$RELEASE.tgz
tar cpf - --directory=$DEST/cache/sdcard/ --exclude='dev' --exclude='proc/*' --exclude='run/*' --exclude='tmp/*' \
--exclude='mnt/*' --exclude='sys/*' . | pigz > $DEST/cache/rootfs/$RELEASE.tgz
fi
#
# mount proc, sys and dev