makepkg: quote removed filename as it can have spaces

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Allan McRae 2012-03-09 17:32:11 +10:00 committed by Dan McGee
parent f41037358a
commit f988aa6b32
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ clean_up() {
for pkg in ${pkgname[@]}; do
for file in ${pkg}-*-*-${CARCH}{${PKGEXT},${SRCEXT}}; do
if [[ -h $file && ! -e $file ]]; then
rm -f $file
rm -f "$file"
fi
done
done