Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=7025eadf54c532cc729556daf89e68f4ff0b7922

commit 7025eadf54c532cc729556daf89e68f4ff0b7922
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Mar 23 19:20:00 2010 +0100

util.sh

* Add cosmetic " around some variable for potential filename with
whitespace.

diff --git a/source/include/util.sh b/source/include/util.sh
index 38dce90..bb5307d 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -543,7 +543,7 @@ Freplace() {
Fdeststrip() {
local i
for i in "$@"; do
-               Fsed "$Fdestdir" "" $Fdestdir/$i
+               Fsed "$Fdestdir" "" "$Fdestdir/$i"
done
}

@@ -654,7 +654,7 @@ Fpatch() {
###
Fpatchall() {
local patch="" patcharch=""
-       for i in ${sour...@]}; do
+       for i in "${sour...@]}"; do
if [ -n "`echo "$i" | grep '\.patch[0-9]*$'`" -o -n "`echo "$i" | grep 
'\.diff$'`" -o -n "`echo "$i" | grep '\.\(patch[0-9]*\|diff\)\.\(gz\|bz2\)$'`" 
]; then
patch=`strip_url "$i"`
patcharch=`echo $patch|sed 's/.*-\([^-]\+\)\.\(diff\|patch0\?\)$/\1/'`
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to