Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kind of fix the quiet mode.

  • Loading branch information...
commit 487e6962de2eb63c5afb5b47993d25d754ad1bf2 1 parent d2db56d
Chmouel Boudjnah authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 upcs
8 upcs
View
@@ -180,17 +180,17 @@ function put_object {
options=""
if [[ $QUIET == "true" ]];then
- options="$options -s"
+ options="-s"
fi
if [[ ${container} == */* ]];then
object="${container#*/}/${object}"
container=${container%%/*}
fi
-
- echo "Uploading ${file}"
+
+ [[ $QUIET != "true" ]] && echo "Uploading ${file}"
curl ${options} -o/dev/null -f -X PUT -T ${file} -H "ETag: ${etag}" -H "Content-type: ${ctype}" -H "X-Auth-Token: ${StorageToken}" ${StorageUrl}/${container}/${object}
- echo
+ [[ $QUIET != "true" ]] && echo
PUBLIC_URL=$(container_public ${container})
Please sign in to comment.
Something went wrong with that request. Please try again.