diff --git a/scripts/demo-alphabet.sh b/scripts/demo-alphabet.sh index a0195a4..22e2c4e 100755 --- a/scripts/demo-alphabet.sh +++ b/scripts/demo-alphabet.sh @@ -31,7 +31,7 @@ status=$(curl -s \ --header 'Content-Length: 3' \ --header 'Content-Range: bytes 0-2/26' \ --data 'abc' \ -${SERVICE}${location} |head -n1 |tr -d '\r') +${SERVICE}${location} |head -1 |tr -d '\r') echo "<-- ${status}" # check that data with HEAD @@ -57,7 +57,7 @@ status=$(curl -s \ --header 'Content-Length: 3' \ --header 'Content-Range: bytes 22-25/26' \ --data 'xyz' \ -${SERVICE}${location} |head -n1 |tr -d '\r') +${SERVICE}${location} |head -1 |tr -d '\r') echo "<-- ${status}" # check that data with HEAD @@ -68,4 +68,5 @@ echo "<-- Range: ${has_range}" # get that data with GET echo -ne "GET '${SERVICE}${location}' \t\t" has_content=$(curl -s ${SERVICE}${location}) -echo "<-- ${has_content}" \ No newline at end of file +echo "<-- ${has_content}" +