[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
|
if [ -n "${PATHS_TO_REMOVE}" ]; then
|
||||||
for path in $(echo ${PATHS_TO_REMOVE} | tr ";" "\n"); do
|
for path in $(echo ${PATHS_TO_REMOVE} | tr ";" "\n"); do
|
||||||
path="${tmp_dir}/${path}"
|
path="${tmp_dir}/${path}"
|
||||||
if [ -e "${path}" ]; then
|
echo "Removing: ${path}"
|
||||||
echo "Removing: ${path}"
|
rm -rf "${path}"
|
||||||
rm -rf "${path}"
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ -n "${PATHS_TO_EMPTY}" ]; then
|
if [ -n "${PATHS_TO_EMPTY}" ]; then
|
||||||
for path in $(echo ${PATHS_TO_EMPTY} | tr ";" "\n"); do
|
for path in $(echo ${PATHS_TO_EMPTY} | tr ";" "\n"); do
|
||||||
path="${tmp_dir}/${path}"
|
path="${tmp_dir}/${path}"
|
||||||
if [ -d "${path}" ]; then
|
echo "Emptying: ${path}"
|
||||||
echo "Emptying: ${path}"
|
rm -rf "${path}"/*
|
||||||
rm -rf "${path}"/*
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user