[scripts] mkloopcard.txt: do not use -e with patterns

This commit is contained in:
Fabio Erculiani 2011-12-30 00:51:46 +01:00
parent 87d89b0bd6
commit caa7785f6c

View File

@ -141,19 +141,15 @@ echo "rc-update --update" | chroot "${tmp_dir}"
if [ -n "${PATHS_TO_REMOVE}" ]; then
for path in $(echo ${PATHS_TO_REMOVE} | tr ";" "\n"); do
path="${tmp_dir}/${path}"
if [ -e "${path}" ]; then
echo "Removing: ${path}"
rm -rf "${path}"
fi
done
fi
if [ -n "${PATHS_TO_EMPTY}" ]; then
for path in $(echo ${PATHS_TO_EMPTY} | tr ";" "\n"); do
path="${tmp_dir}/${path}"
if [ -d "${path}" ]; then
echo "Emptying: ${path}"
rm -rf "${path}"/*
fi
done
fi