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

commit ac60cedabffa28146ee1b72527ebfa23cdf75f01
Author: Michel Hermier <[email protected]>
Date:   Mon Jan 20 10:47:55 2014 +0100

util.sh: Make __Fsed return an error instead of killing the build when file is 
absent.

diff --git a/source/include/util.sh b/source/include/util.sh
index 96519d9..7da4473 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -639,11 +639,11 @@ Fln() {
__Fsed() {
if [ ! -e "$3" ]; then
error "File $3 not found."
-               Fdie
+               return 1
fi
if [ ! -f "$3" ]; then
error "File $3 is not a regular file."
-               Fdie
+               return 1
fi
sed -i -e "s|$1|$2|g" "$3" || Fdie
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to