[pacman-dev] [PATCH 5/6] makepkg: quote removed filename as it can have spaces

Allan McRae allan at archlinux.org
Fri Mar 9 02:59:08 EST 2012


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 scripts/makepkg.sh.in |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 9cd8af8..534f6f8 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -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
-- 
1.7.9.3



More information about the pacman-dev mailing list