[scripts] mkloopcard.txt: do not use -e with patterns
This commit is contained in:
parent
87d89b0bd6
commit
caa7785f6c
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user