No need to change the internal field separator

This commit is contained in:
Andrew S. Rightenburg 2024-05-05 12:10:08 +08:00
parent 309da24137
commit af950420c0
Signed by: rail5
GPG Key ID: A0CB570AB6629159
1 changed files with 1 additions and 4 deletions

View File

@ -860,9 +860,7 @@ done
## We should remove it.
# This way, we avoid taking up unnecessary space on the user's machine
## In the event that the user decides to remove a package from their autobuild config.
OLDIFS="$IFS"
IFS="
"
for subdir in "$package_directory/"*; do
subdir="$(basename "$subdir")"
if [[ "${packages[$subdir]+true}" ]]; then
@ -873,7 +871,6 @@ for subdir in "$package_directory/"*; do
rm -rf "${package_directory:?}/${subdir:?}"
fi
done
IFS="$OLDIFS"
# Now carry on