diff options
author | Devin J. Pohly <djpohly@gmail.com> | 2014-01-07 15:04:07 -0500 |
---|---|---|
committer | Devin J. Pohly <djpohly@gmail.com> | 2014-01-07 15:04:07 -0500 |
commit | a5381fae09a7d56d96839a3992a045aff64821ba (patch) | |
tree | e04d4f0d202a5f7ffc33adafc8b455ea8c60e3d9 /hib-dlagent | |
parent | 52caaf2c6c8bb2ef7069006001f6548d7e77e90c (diff) | |
download | hib-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.
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-x | hib-dlagent | 4 |
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" } |