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

commit 816b7b31d62b58a781a82df00094b4e407e83236
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Apr 27 20:10:43 2010 +0200

util.sh

* Fix obvious typos.

diff --git a/source/include/util.sh b/source/include/util.sh
index 74545d9..69aa21e 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -254,7 +254,7 @@ Fmv() {

###
# * Fsubmv(): Move a file under the subpkg Fdestdir. Parameters: 1) name of the
-# subpackage 2) name of the file 2) destination
+# subpackage 2) name of the file 3) destination
###
Fsubmv()
{
@@ -498,12 +498,12 @@ Fln() {
# 1) regexp (see man sed!) 2) replacement 3) file to edit in place.
###
__Fsed() {
-       if [ ! -e $i ]; then
-               error "File $i not found."
+       if [ ! -e "$3" ]; then
+               error "File $3 not found."
Fdie
fi
-       if [ ! -f $i ]; then
-               error "File $i is not a regular file."
+       if [ ! -f "$3" ]; then
+               error "File $3 is not a regular file."
Fdie
fi
sed -i -e "s|$1|$2|g" "$3" || Fdie
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to