From a282b78c31be363a4fa5869c59588aa39da57b88 Mon Sep 17 00:00:00 2001 From: Yaohan Chen Date: Fri, 4 Apr 2014 11:13:02 -0400 Subject: Make PhantomJS read password from environment This way the password is not included in the command line of the phantomjs process. --- discover-url.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'discover-url.coffee') diff --git a/discover-url.coffee b/discover-url.coffee index 4dbc66b..bd7bcba 100644 --- a/discover-url.coffee +++ b/discover-url.coffee @@ -1,5 +1,7 @@ system = require 'system' -[_, listing_page, filename, username, password] = system.args +[_, listing_page, filename, username] = system.args +password = system.env.PASSWORD +system.env.PASSWORD = '' util = require './util' page = util.page -- cgit v1.2.3-70-g09d2