diff options
author | ng0 <ng0@n0.is> | 2019-10-27 17:29:56 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-27 17:29:56 +0000 |
commit | cf9440cc40334ed87755615ecf6d5d2c2445f17b (patch) | |
tree | 96534bb547681e8223575b988d64854d72edda1e /src | |
parent | 2d85692e931ec7868bc781a0e91c856a03d80519 (diff) | |
download | gnunet-cf9440cc40334ed87755615ecf6d5d2c2445f17b.tar.gz gnunet-cf9440cc40334ed87755615ecf6d5d2c2445f17b.zip |
portability fix, use = instead of == with test
Diffstat (limited to 'src')
-rwxr-xr-x | src/namestore/test_plugin_rest_namestore.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/namestore/test_plugin_rest_namestore.sh b/src/namestore/test_plugin_rest_namestore.sh index f3a4b7c49..014057e56 100755 --- a/src/namestore/test_plugin_rest_namestore.sh +++ b/src/namestore/test_plugin_rest_namestore.sh | |||
@@ -25,7 +25,7 @@ curl_get () { | |||
25 | resp=$(curl -v "$1" 2>&1) | 25 | resp=$(curl -v "$1" 2>&1) |
26 | cache="$(echo $resp | grep "$2")" | 26 | cache="$(echo $resp | grep "$2")" |
27 | #echo $cache | 27 | #echo $cache |
28 | if [ "" == "$cache" ] | 28 | if [ "" = "$cache" ] |
29 | then | 29 | then |
30 | echo "Error in get response: $resp, expected $2" | 30 | echo "Error in get response: $resp, expected $2" |
31 | gnunet-arm -e -c test_namestore_api.conf | 31 | gnunet-arm -e -c test_namestore_api.conf |
@@ -40,7 +40,7 @@ curl_post () { | |||
40 | resp=$(curl -v -X "POST" "$1" --data "$2" 2>&1) | 40 | resp=$(curl -v -X "POST" "$1" --data "$2" 2>&1) |
41 | cache="$(echo $resp | grep "$3")" | 41 | cache="$(echo $resp | grep "$3")" |
42 | #echo $cache | 42 | #echo $cache |
43 | if [ "" == "$cache" ] | 43 | if [ "" = "$cache" ] |
44 | then | 44 | then |
45 | echo "Error in post response: $resp ($2), expected $3" | 45 | echo "Error in post response: $resp ($2), expected $3" |
46 | gnunet-arm -e -c test_namestore_api.conf | 46 | gnunet-arm -e -c test_namestore_api.conf |
@@ -54,7 +54,7 @@ curl_delete () { | |||
54 | resp=$(curl -v -X "DELETE" "$1" 2>&1) | 54 | resp=$(curl -v -X "DELETE" "$1" 2>&1) |
55 | cache="$(echo $resp | grep "$2")" | 55 | cache="$(echo $resp | grep "$2")" |
56 | #echo $cache | 56 | #echo $cache |
57 | if [ "" == "$cache" ] | 57 | if [ "" = "$cache" ] |
58 | then | 58 | then |
59 | echo "Error in delete response: $resp, expected $2" | 59 | echo "Error in delete response: $resp, expected $2" |
60 | gnunet-arm -e -c test_namestore_api.conf | 60 | gnunet-arm -e -c test_namestore_api.conf |