summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin J. Pohly <djpohly@gmail.com>2014-01-07 15:04:07 -0500
committerDevin J. Pohly <djpohly@gmail.com>2014-01-07 15:04:07 -0500
commita5381fae09a7d56d96839a3992a045aff64821ba (patch)
treee04d4f0d202a5f7ffc33adafc8b455ea8c60e3d9
parent52caaf2c6c8bb2ef7069006001f6548d7e77e90c (diff)
downloadhib-dlagent-a5381fae09a7d56d96839a3992a045aff64821ba.tar.gz
hib-dlagent-a5381fae09a7d56d96839a3992a045aff64821ba.zip
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.
-rwxr-xr-xhib-dlagent4
1 files changed, 4 insertions, 0 deletions
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"
}