summaryrefslogtreecommitdiff
path: root/hib-dlagent
diff options
context:
space:
mode:
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-xhib-dlagent2
1 files changed, 1 insertions, 1 deletions
diff --git a/hib-dlagent b/hib-dlagent
index e55ca61..f191b7c 100755
--- a/hib-dlagent
+++ b/hib-dlagent
@@ -21,7 +21,7 @@ login() {
discover_url() {
local LISTING_PAGE="$1"
- curl -s --cookie "$COOKIE_JAR" "$LISTING_PAGE" | grep "/$FILE?" | \
+ curl -s --cookie "$COOKIE_JAR" "$LISTING_PAGE" | grep "/$FILE?" | grep 'data-web=' | \
sed -e "s/.* data-web='\([^']*\)'.*/\1/" | head -n 1
}