Repository: trafficserver Updated Branches: refs/heads/master 38db3c962 -> 57fa0c3ab
TS-3139 Fix tabs Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/57fa0c3a Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/57fa0c3a Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/57fa0c3a Branch: refs/heads/master Commit: 57fa0c3ab1a9b8730ee135f2d04f025c94d1ea41 Parents: 38db3c9 Author: Leif Hedstrom <[email protected]> Authored: Sat Oct 18 21:08:42 2014 -0600 Committer: Leif Hedstrom <[email protected]> Committed: Sat Oct 18 21:08:42 2014 -0600 ---------------------------------------------------------------------- tools/traffic_primer | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/57fa0c3a/tools/traffic_primer ---------------------------------------------------------------------- diff --git a/tools/traffic_primer b/tools/traffic_primer index 869bd5e..4c3dc4c 100755 --- a/tools/traffic_primer +++ b/tools/traffic_primer @@ -58,11 +58,11 @@ push() { # Fetch the "source" object first # [ $FORCE -gt 0 ] && curl -x ${HOST}:${PORT} -s -o /dev/null -X PURGE $u - echo -n " Fetching source body ..." + echo -en "\tFetching source body ..." curl -x ${HOST}:${PORT} -s -D ${f}.hdrs -o ${f}.body $u s_md5=$(cat ${f}.body | md5sum) echo "done" - echo " Source MD5=${s_md5}" + echo -e "\tSource MD5=${s_md5}" cat ${f}.hdrs ${f}.body > ${f} @@ -70,19 +70,19 @@ push() { # Make sure the destination host:port is up nc -z $h $PORT > /dev/null if [ $? -gt 0 ]; then - echo " Error: ${h}:${PORT} is down" + echo -e "\tError: ${h}:${PORT} is down" else - echo -n " Procesing ${h}:${PORT}..." + echo -en "\tProcesing ${h}:${PORT}..." # PURGE the object first if we -f (force) it if [ $FORCE -gt 0 ]; then - echo -n " purged ..." + echo -n " purged..." curl -x ${h}:${PORT} -s -o /dev/null -X PURGE $u fi # If it's not in cache now, PUSH it curl -f -I -x ${h}:${PORT} -s -o /dev/null -H "Cache-Control: only-if-cached" $u if [ $? -gt 0 ]; then - echo -n " pushing ..." + echo -n " pushing..." curl -x ${h}:${PORT} -s -o /dev/null -X PUSH --data-binary @${f} $u fi echo " done." @@ -92,10 +92,10 @@ push() { n_md5=$(curl -x ${h}:${PORT} -s $u | md5sum) if [ "$n_md5" != "$s_md5" ]; then # This is bad, MD5's don't match, error and PURGE it - echo -n " Error! MD5 incorrect! Purging the object." + echo -en "\t\t Error! MD5 incorrect! Purging the object." curl -x ${h}:${PORT} -s -o /dev/null -X PURGE $u else - echo " MD5 checksum is good." + echo -e "\t\tMD5 checksum is good." fi fi fi
