Commit 45090fc8 authored by Bjarne Saltbaek's avatar Bjarne Saltbaek
Browse files

Better way to catch success or failure

parent d761bdc1
...@@ -139,7 +139,7 @@ _get_root() { ...@@ -139,7 +139,7 @@ _get_root() {
} }
_successful_update() { _successful_update() {
if (echo "$_result" | grep -q 'newserial'); then return 0; fi if (echo "$_result" | _egrep_o 'data":\[[^]]*]' | grep -q '"newserial":null'); then return 1; fi
return 1 return 1
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment