Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-06-15 12:10:31 +0200
committerDan McGee <dan@archlinux.org>2008-06-15 13:52:54 -0500
commitb9445c12cf9e958d8e62f9f9ecb5c1352010cdf4 (patch)
tree0f90be3ad8c09d4b57501e37f1a60d12e2df2c61 /scripts
parentb8a66d68593d1f267c3bb8cd8943724711626903 (diff)
makepkg: Add missing quotes for the source array.
Now makepkg can handle filenames with whitespaces in the source array. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 998c768d..438335ec 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -428,7 +428,7 @@ download_sources() {
pushd "$SRCDEST" &>/dev/null
local netfile
- for netfile in ${source[@]}; do
+ for netfile in "${source[@]}"; do
local file=$(strip_url "$netfile")
if [ -f "$startdir/$file" ]; then
msg2 "$(gettext "Found %s in build dir")" "$file"
@@ -501,7 +501,7 @@ generate_checksums() {
done
local netfile
- for netfile in ${source[@]}; do
+ for netfile in "${source[@]}"; do
local file="$(strip_url "$netfile")"
if [ ! -f "$file" ] ; then
@@ -956,9 +956,9 @@ create_srcpackage() {
fi
local netfile
- for netfile in ${source[@]}; do
+ for netfile in "${source[@]}"; do
local file=$(strip_url "$netfile")
- if [ -f $netfile ]; then
+ if [ -f "$netfile" ]; then
msg2 "$(gettext "Adding %s...")" "$netfile"
ln -s $netfile ${srclinks}/${pkgname}
elif [ "$SOURCEONLY" = "2" -a -f "$SRCDEST/$file" ]; then