Skip to content

Commit bbd98d2

Browse files
committed
fix: check for error in script
Signed-off-by: Boris Glimcher <[email protected]>
1 parent 1be3717 commit bbd98d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/change_image.sh

+3
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@ curl -i --user [email protected]:my-secret -H "Accept:application/yang-data+j
4747
# change boot image from https://www.watsen.net/docs/sztpd/current/admin-guide/#example-put-ing-an-entry-before-another-entry
4848
curl -i -X PUT --user [email protected]:my-secret --data @/tmp/boot-images.json -H 'Content-Type:application/yang-data+json' ${BOOTSTRAP_URL}/wn-sztpd-1:boot-images | tee /tmp/result.json
4949

50+
# check for errors
51+
grep -v "error-message" /tmp/result.json
52+
5053
# read back to check configuration was set
5154
curl -i --user [email protected]:my-secret -H "Accept:application/yang-data+json" ${BOOTSTRAP_URL} > /tmp/running_after.json
5255

0 commit comments

Comments
 (0)