aboutsummaryrefslogtreecommitdiff
path: root/tools/boca-auth-runs
diff options
context:
space:
mode:
authorCassio de Campos <cassiopc@gmail.com>2017-08-04 11:13:06 +0000
committerCassio de Campos <cassiopc@gmail.com>2017-08-04 11:13:06 +0000
commit64295ec40df409db908c6ccc7fe748b0c893c84f (patch)
tree097253d8eb014429656717849eaa78b42568017c /tools/boca-auth-runs
parent5513df3ed8ce07ae9516d834c4ac176d5bfc0cf2 (diff)
downloadboca-64295ec40df409db908c6ccc7fe748b0c893c84f.tar.gz
boca-64295ec40df409db908c6ccc7fe748b0c893c84f.zip
option to give server address
Diffstat (limited to 'tools/boca-auth-runs')
-rwxr-xr-xtools/boca-auth-runs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/boca-auth-runs b/tools/boca-auth-runs
index 821202f..0e1a866 100755
--- a/tools/boca-auth-runs
+++ b/tools/boca-auth-runs
@@ -10,9 +10,13 @@ if [ "$BOCASERVER" == "" ]; then
fi
user="$1"
if [ "$user" == "" ]; then
- echo "parameter user missing"
+ echo "parameter user missing. Usage: $0 <user> [<optional-server-address>]"
exit 1
fi
+if [ "$2" != "" ]; then
+ BOCASERVER=$2
+fi
+echo "Server at $BOCASERVER"
read -s -p "Password: " pass
for i in wget sha256sum cut; do