diff options
| author | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 11:13:06 +0000 |
|---|---|---|
| committer | Cassio de Campos <cassiopc@gmail.com> | 2017-08-04 11:13:06 +0000 |
| commit | 64295ec40df409db908c6ccc7fe748b0c893c84f (patch) | |
| tree | 097253d8eb014429656717849eaa78b42568017c /tools | |
| parent | 5513df3ed8ce07ae9516d834c4ac176d5bfc0cf2 (diff) | |
| download | boca-64295ec40df409db908c6ccc7fe748b0c893c84f.tar.gz boca-64295ec40df409db908c6ccc7fe748b0c893c84f.zip | |
option to give server address
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/boca-auth-runs | 6 |
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 |