5 if [ -r ~/.maloorc ] ; then
8 echo "Error: ~/.maloorc not found. Please obtain this file from the maloo web interface, under 'Upload results'"
12 if [ -z $FILENAME ] ; then
13 echo "Usage: ${0} <tarball or directory>"
18 if [ ! -r $FILENAME ] ; then
19 echo "Input file '$FILENAME' not found"
23 echo Uploading $FILENAME to $MALOO_URL
24 if [ -d $FILENAME ] ; then
26 tar czf - * | curl -F "user_id=${MALOO_USER_ID}" -F "upload=@-" -F "user_upload_token=${MALOO_UPLOAD_TOKEN}" ${MALOO_URL} > /dev/null
29 curl -F "user_id=${MALOO_USER_ID}" -F "upload=@${FILENAME}" -F "user_upload_token=${MALOO_UPLOAD_TOKEN}" ${MALOO_URL} > /dev/null