summaryrefslogtreecommitdiff
path: root/hib-dlagent
diff options
context:
space:
mode:
authorYaohan Chen <yaohan.chen@gmail.com>2014-04-01 10:45:28 -0400
committerYaohan Chen <yaohan.chen@gmail.com>2014-04-01 10:45:28 -0400
commit4bee69cb5c9a5260b706f769f175818b322f5d26 (patch)
tree19fd670dd066d7d2384378a95fb824202d11cf29 /hib-dlagent
parent23fcf1acc62e0f32f479c12c1916b2b1dd922199 (diff)
downloadhib-dlagent-4bee69cb5c9a5260b706f769f175818b322f5d26.tar.gz
hib-dlagent-4bee69cb5c9a5260b706f769f175818b322f5d26.zip
Remove the login function/script
The discover-url script can handle login by itself, so it saves time to just skip visiting the login page.
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-xhib-dlagent10
1 files changed, 0 insertions, 10 deletions
diff --git a/hib-dlagent b/hib-dlagent
index 5c6a8a5..e67c86c 100755
--- a/hib-dlagent
+++ b/hib-dlagent
@@ -17,15 +17,6 @@ PASSWORD=
KEYS=()
STORAGE=
-login() {
- if [ -z "$PASSWORD" ]; then
- read -rsp 'Enter Humble account password: ' PASSWORD
- echo
- fi
- phantomjs --config="$CONFIG_PATH"/phantomjs-config.json --cookies-file="$COOKIE_JAR" \
- "$SCRIPT_PATH"/login.coffee "$LOGIN_PAGE" "$USERNAME" "$PASSWORD"
-}
-
discover_url() {
local LISTING_PAGE="$1"
phantomjs --config="$CONFIG_PATH"/phantomjs-config.json --cookies-file="$COOKIE_JAR" \
@@ -66,7 +57,6 @@ handle_download() {
COOKIE_JAR=$(mktemp)
if [ -n "$USERNAME" ]; then
- login
LISTING_PAGES+=("$HOME_PAGE")
fi