Commit 38e4d9f4 authored by Reto Da Forno's avatar Reto Da Forno

minor change

parent e14814aa
......@@ -4,7 +4,7 @@
# Command line tool for FlockLab
# v1.1
#
# usage:
# Usage:
#
# -v <testconfig.xml>: validate
# -c <testconfig.xml>: create
......@@ -14,20 +14,15 @@
# -f <testid>: fetch via webdav
# -h: display help
#
# your FlockLab login credentials need to be stored in .flocklabauth in your home directory as follows:
# Your FlockLab login credentials need to be stored in .flocklabauth in your home directory as follows:
# USER=[your_username]
# PASSWORD=[your_password]
#
# if you want to be able to download your test results (-f), your credentials need to be stored in .netrc in your home directory:
# default
# login [your_username]
# password [your_password]
#
# note: if you use the .netrc file, you don't need the .flocklabauth file
# If you want to be able to download your test results via webdav (-f), you need to install the client 'cadaver'.
# ------------------------------
DEST=/tmp
EXTRACT=1
EXTRACT=0
SERVER_URL=https://www.flocklab.ethz.ch/user
CURL_PARAMS=-sS
FLAUTH_FILE=.flocklabauth
......@@ -55,16 +50,6 @@ then
done < "$NETRC_FILE"
fi
# if .netrc file does not exist, create it
if [ ! -f $NETRC_FILE ]
then
echo "default
login $USER
password $PASSWORD" > $NETRC_FILE
chmod 600 $NETRC_FILE
echo ".netrc file created"
fi
usage()
{
cat << EOF
......@@ -92,6 +77,16 @@ EOF
fetchtest()
{
# if .netrc file does not exist, create it
if [ ! -f $NETRC_FILE ]
then
echo "default
login $USER
password $PASSWORD" > $NETRC_FILE
chmod 600 $NETRC_FILE
echo ".netrc file created"
fi
TESTID=$OPTARG
if [ ! -d $DEST ]
then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment