Skip to content

Commit

Permalink
change printf to echo
Browse files Browse the repository at this point in the history
  • Loading branch information
robwhitby committed Aug 18, 2015
1 parent 88d3c4a commit 42d4031
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions shakedown.sh
Expand Up @@ -5,7 +5,7 @@ BASE_URL=${SHAKEDOWN_URL:-""}
CREDENTIALS=${SHAKEDOWN_CREDENTIALS:-""}

_usage() {
printf '
echo '
usage: $0 [options...]
Options:
-u <base URL> Base URL to test.
Expand Down Expand Up @@ -45,12 +45,12 @@ CGREEN=$(tput setaf 2)
CDEFAULT=$(tput sgr0)

_pass() {
printf " ${CGREEN}${1}${CDEFAULT}\n"
echo " ${CGREEN}${1}${CDEFAULT}"
}

_fail() {
STATE="fail"
printf " ${CRED}${1}${CDEFAULT}\n"
echo " ${CRED}${1}${CDEFAULT}"
}

_start_test() {
Expand Down Expand Up @@ -85,7 +85,8 @@ shakedown() {
_start_test
METHOD="$1"
URL="$2"
printf "\n${METHOD} ${URL}\n"
echo
echo "${METHOD} ${URL}"
METHOD_OPT="-X ${METHOD}"
if [ "${METHOD}" = "HEAD" ]; then
METHOD_OPT="-I"
Expand Down

0 comments on commit 42d4031

Please sign in to comment.