diff options
author | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-04 11:13:02 -0400 |
---|---|---|
committer | Yaohan Chen <yaohan.chen@gmail.com> | 2014-04-05 00:08:29 -0400 |
commit | a282b78c31be363a4fa5869c59588aa39da57b88 (patch) | |
tree | d4b9f08a4275f4ec4b76802c46abc7a3650d46a7 /hib-dlagent | |
parent | 1a0ddd61b8d9a6116fd4e184da61dc028a83c034 (diff) | |
download | hib-dlagent-a282b78c31be363a4fa5869c59588aa39da57b88.tar.gz hib-dlagent-a282b78c31be363a4fa5869c59588aa39da57b88.zip |
Make PhantomJS read password from environment
This way the password is not included in the command line of the
phantomjs process.
Diffstat (limited to 'hib-dlagent')
-rwxr-xr-x | hib-dlagent | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hib-dlagent b/hib-dlagent index 0396633..9863a2e 100755 --- a/hib-dlagent +++ b/hib-dlagent @@ -20,9 +20,10 @@ STORAGE= discover_url() { local LISTING_PAGE="$1" # Running a new shell in order to split PHANTOM_JS_OPTIONS into multiple arguments + PASSWORD="$PASSWORD" \ sh -c "phantomjs --config='$CONFIG_PATH'/phantomjs-config.json --cookies-file='$COOKIE_JAR' \ $PHANTOM_JS_OPTIONS \ - '$SCRIPT_PATH'/discover-url.coffee '$LISTING_PAGE' '$FILE' '$USERNAME' '$PASSWORD'" + '$SCRIPT_PATH'/discover-url.coffee '$LISTING_PAGE' '$FILE' '$USERNAME'" } usage() { |