Mercurial > ec-dotfiles
changeset 324:391f2b64900e
Fixed sed test to be compatible with POSIX regex.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Sun, 18 Mar 2012 13:23:06 +0700 |
parents | 3bb8d53b61dc |
children | 795ad57794a6 |
files | bin/moefetch |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/moefetch Sun Mar 18 13:21:02 2012 +0700 +++ b/bin/moefetch Sun Mar 18 13:23:06 2012 +0700 @@ -127,7 +127,7 @@ wget --no-check-certificate --quiet "${url}" -O "${TEMP_PREFIX}-xml" --referer="${SITE}/post" --user-agent="${useragent}" -e continue=off || Err_Fatal "Failed download catalog file" printf "Processing XML file... " # xslt evilry - xsltproc - "${TEMP_PREFIX}-xml" <<EOF | sed 's/.*\(https?.*\)\(\/[a-f0-9]\{32\}\).*\.\([^\.]*\)/\1\2.\3/g' | grep ^http > "${TEMP_PREFIX}-templist" + xsltproc - "${TEMP_PREFIX}-xml" <<EOF | sed 's/.*\(https*.*\)\(\/[a-f0-9]\{32\}\).*\.\([^\.]*\)/\1\2.\3/g' | grep ^http > "${TEMP_PREFIX}-templist" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" indent="yes"/> <xsl:template match="post">