File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,12 @@ jobs:
108108 echo "OK"
109109 else
110110 echo "FAIL"
111- exit ${status}
111+ exit 1
112112 fi
113113 - name : Run file consistency check 1
114114 run : |
115- status=$( curl -sS -w %{http_code} -I -X GET -H "Host: localhost" " http://localhost/data50k.json" --output data50k.json)
116- if [ "${status}" == "200" ]; then
115+ curl -sS " http://localhost/data50k.json" --output data50k.json
116+ if [ -f data50k.json ]; then
117117 status=$(diff data50k.json /usr/local/nginx/html/data50k.json)
118118 if [ $? -eq 0 ]; then
119119 echo "OK"
@@ -123,12 +123,12 @@ jobs:
123123 fi
124124 else
125125 echo "FAIL"
126- exit ${status}
126+ exit 1
127127 fi
128128 - name : Run file consistency check 2
129129 run : |
130- status=$( curl -sS -w %{http_code} -I -X GET -H "Host: localhost" " http://localhost/plugged.png" --output plugged.png)
131- if [ "${status}" == "200" ]; then
130+ curl -sS " http://localhost/plugged.png" --output plugged.png
131+ if [ -f plugged.png ]; then
132132 status=$(diff plugged.png /usr/local/nginx/html/plugged.png)
133133 if [ $? -eq 0 ]; then
134134 echo "OK"
You can’t perform that action at this time.
0 commit comments