not needed number

This commit is contained in:
array-in-a-matrix 2024-08-07 20:32:29 -04:00
parent 0dc5945583
commit b0e617f32f

View file

@ -75,8 +75,8 @@ printf "\n%bTest: $ENDPOINT%b\n" "$BLD" "$CLR"
curl --show-error --fail-with-body --request POST http://"$BINDADDR":"$PORT""$ENDPOINT" \ curl --show-error --fail-with-body --request POST http://"$BINDADDR":"$PORT""$ENDPOINT" \
-H "Authorization: $TOKEN" -F "file=@image2.jpg" -F 'tags=["4k HDR", "Fruit", "Yummy"]' -H "Authorization: $TOKEN" -F "file=@image2.jpg" -F 'tags=["4k HDR", "Fruit", "Yummy"]'
if test $? -eq 0; then printf "%bTest: Success - $ENDPOINT 2" "$YAY"; if test $? -eq 0; then printf "%bTest: Success - $ENDPOINT" "$YAY";
else printf "%bTest: Fail - $ENDPOINT 2" "$NAY"; ERROR=$((ERROR+1)); else printf "%bTest: Fail - $ENDPOINT" "$NAY"; ERROR=$((ERROR+1));
fi; printf "%b\n" "$CLR"; fi; printf "%b\n" "$CLR";