Skip to content

Commit

Permalink
Kind of fix the quiet mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Jun 27, 2011
1 parent d2db56d commit 487e696
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions upcs
Expand Up @@ -180,17 +180,17 @@ function put_object {


options="" options=""
if [[ $QUIET == "true" ]];then if [[ $QUIET == "true" ]];then
options="$options -s" options="-s"
fi fi


if [[ ${container} == */* ]];then if [[ ${container} == */* ]];then
object="${container#*/}/${object}" object="${container#*/}/${object}"
container=${container%%/*} container=${container%%/*}
fi 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} 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}) PUBLIC_URL=$(container_public ${container})


Expand Down

0 comments on commit 487e696

Please sign in to comment.