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

commit e6edce4f4927e93e37be7b02b0ced32259936535
Author: Michel Hermier <[email protected]>
Date:   Sat Jun 14 10:42:07 2014 +0200

util.sh: Make Flastdir also accept non '/' terminated urls (in case Fwcat use 
lynx instead of wget).

diff --git a/source/include/util.sh b/source/include/util.sh
index c842068..351df08 100644
--- a/source/include/util.sh
+++ b/source/include/util.sh
@@ -1444,12 +1444,14 @@ Flastarchive() {
# Parameters: 1) url (optional) see Flastarchive
###
Flastdir() {
+       local _Flastdir_regex='/\{0,1\}'
+
if [ -z "$1" ]; then
-               Flastarchive '/'
+               Flastarchive "$_Flastdir_regex"
else
# The trailing '/' in the url is here to avoid a redirection
# bug in Fwcat.
-               Flastarchive "$1/" '/'
+               Flastarchive "$1/" "$_Flastdir_regex"
fi
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to