summaryrefslogtreecommitdiffstats
path: root/w3watch
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2009-06-16 12:31:41 +0200
committerPierre Schmitz <pierre@archlinux.de>2009-06-16 12:31:41 +0200
commit8ec5e93d309f6a25789881db3f414d16dd017cd9 (patch)
tree6381564f954bfaa973c5853da7a199970ddee35c /w3watch
parent55e5a8b0212c4c07fdb2fd1b82e23d2ec8f0989b (diff)
downloadw3watch-8ec5e93d309f6a25789881db3f414d16dd017cd9.tar.gz
w3watch-8ec5e93d309f6a25789881db3f414d16dd017cd9.tar.xz
be able to work on bare HTML source
Diffstat (limited to 'w3watch')
-rwxr-xr-xw3watch8
1 files changed, 7 insertions, 1 deletions
diff --git a/w3watch b/w3watch
index ba8f975..6abc305 100755
--- a/w3watch
+++ b/w3watch
@@ -63,7 +63,13 @@ while read line; do
url="${data[0]}"
filter="${data[@]:1}"
- dump=$(lynx -dump "$url")
+ if echo "$url}" | grep -q '^@'; then
+ url="$(echo "${url}" | cut -c 1 --complement -)"
+ dump=$(lynx -source "$url")
+ else
+ dump=$(lynx -dump "$url")
+ fi
+
if [ $? -ne 0 ]; then
rm -f "${LOCKFILE}"
exit 1