[scripts] fix paths removal in mkloopcard.txt
This commit is contained in:
parent
29b292c6b2
commit
e3d6b80b61
@ -127,7 +127,8 @@ rsync -a -H -A -X --delete-during "${CHROOT_DIR}"/ "${tmp_dir}"/ || exit 1
|
|||||||
oldifs="${IFS}"
|
oldifs="${IFS}"
|
||||||
IFS=";"
|
IFS=";"
|
||||||
if [ -n "${PATHS_TO_REMOVE}" ]; then
|
if [ -n "${PATHS_TO_REMOVE}" ]; then
|
||||||
for path in "${tmp_dir}"/${PATHS_TO_REMOVE}; do
|
for path in ${PATHS_TO_REMOVE}; do
|
||||||
|
path="${tmp_dir}/${path}"
|
||||||
if [ -e "${path}" ]; then
|
if [ -e "${path}" ]; then
|
||||||
echo "Removing: ${path}"
|
echo "Removing: ${path}"
|
||||||
rm -rf "${path}"
|
rm -rf "${path}"
|
||||||
@ -135,7 +136,8 @@ if [ -n "${PATHS_TO_REMOVE}" ]; then
|
|||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
if [ -n "${PATHS_TO_EMPTY}" ]; then
|
if [ -n "${PATHS_TO_EMPTY}" ]; then
|
||||||
for path in "${tmp_dir}"/${PATHS_TO_EMPTY}; do
|
for path in ${PATHS_TO_EMPTY}; do
|
||||||
|
path="${tmp_dir}/${path}"
|
||||||
if [ -d "${path}" ]; then
|
if [ -d "${path}" ]; then
|
||||||
echo "Emptying: ${path}"
|
echo "Emptying: ${path}"
|
||||||
rm -rf "${path}"/*
|
rm -rf "${path}"/*
|
||||||
|
Loading…
Reference in New Issue
Block a user