[devtools,5/8] makechrootpkg: Quote directory passed to `rm -rf`.

Message ID 20170402081002.28176-6-lukeshu@lukeshu.com
State Accepted
Headers show
Series [devtools,1/8] Avoid using string interpolation; use printf format strings instead. | expand

Commit Message

Luke Shumaker April 2, 2017, 8:09 a.m. UTC
From: Luke Shumaker <lukeshu@parabola.nu>

---
 makechrootpkg.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/makechrootpkg.in b/makechrootpkg.in
index 9566b2e..774ebcf 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -231,7 +231,7 @@  download_sources() {
 	(( $? != 0 )) && die "Could not download sources."
 
 	# Clean up garbage from verifysource
-	rm -rf $builddir
+	rm -rf "$builddir"
 }
 
 move_products() {