mirror of
https://github.com/aljazceru/cyphernode.git
synced 2026-02-23 13:04:22 +01:00
Small fixes to make it work, using fixed javascript-opentimestamps
This commit is contained in:
@@ -91,6 +91,7 @@ verify() {
|
||||
|
||||
local result
|
||||
local returncode
|
||||
local message
|
||||
local data
|
||||
|
||||
# Let's create the OTS file locally from the base64
|
||||
@@ -147,13 +148,25 @@ verify() {
|
||||
trace_rc ${returncode}
|
||||
|
||||
if [ "${returncode}" -eq "0" ]; then
|
||||
# String found
|
||||
data="${data}success\"}"
|
||||
# "Success!" found
|
||||
data="${data}success"
|
||||
else
|
||||
# String not found
|
||||
data="${data}error\",\"error\":\"${result}\"}"
|
||||
# "Success!" not found
|
||||
echo "${result}" | grep "Pending" > /dev/null
|
||||
returncode=$?
|
||||
trace_rc ${returncode}
|
||||
|
||||
if [ "${returncode}" -eq "0" ]; then
|
||||
# "Pending" found
|
||||
data="${data}pending"
|
||||
else
|
||||
# "Pending" not found
|
||||
data="${data}error"
|
||||
fi
|
||||
fi
|
||||
|
||||
data="${data}\",\"message\":\"${result}\"}"
|
||||
|
||||
trace "[verify] data=${data}"
|
||||
|
||||
echo "${data}"
|
||||
|
||||
Reference in New Issue
Block a user