resp=$(curl -v "$1" 2>&1)
cache="$(echo $resp | grep "$2")"
#echo $cache
- if [ "" == "$cache" ]
+ if [ "" = "$cache" ]
then
echo "Error in get response: $resp, expected $2"
gnunet-arm -e -c test_namestore_api.conf
resp=$(curl -v -X "POST" "$1" --data "$2" 2>&1)
cache="$(echo $resp | grep "$3")"
#echo $cache
- if [ "" == "$cache" ]
+ if [ "" = "$cache" ]
then
echo "Error in post response: $resp ($2), expected $3"
gnunet-arm -e -c test_namestore_api.conf
resp=$(curl -v -X "DELETE" "$1" 2>&1)
cache="$(echo $resp | grep "$2")"
#echo $cache
- if [ "" == "$cache" ]
+ if [ "" = "$cache" ]
then
echo "Error in delete response: $resp, expected $2"
gnunet-arm -e -c test_namestore_api.conf