From a5381fae09a7d56d96839a3992a045aff64821ba Mon Sep 17 00:00:00 2001 From: "Devin J. Pohly" Date: Tue, 7 Jan 2014 15:04:07 -0500 Subject: Allow user to enter password manually For users concerned about password security, who don't want to store their password in a file or have it visible in `ps' output. --- hib-dlagent | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hib-dlagent b/hib-dlagent index 0d98b0f..1bc2c40 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -15,6 +15,10 @@ KEYS=() STORAGE= login() { + if [ -z "$PASSWORD" ]; then + read -rsp 'Enter Humble account password: ' PASSWORD + echo + fi curl -s --cookie-jar "$COOKIE_JAR" \ --data-urlencode "username=$USERNAME" --data-urlencode "password=$PASSWORD" "$LOGIN_PAGE" } -- cgit v1.2.3-54-g00ecf