Fixing the problems I have introduced in my last change.
This commit is contained in:
@@ -34,9 +34,9 @@ symbolCheck=$(jq -r ${jqQuery} < temp/optionChain.${symbol}.tmp.$$.json)
|
||||
if [[ "${symbol}" != "${symbolCheck}" ]]; then
|
||||
errMsg="ERROR: THE RESPONSE IS INCORRECT! Symbol: _${symbol}_ Check: _${symbolCheck}_ check file _temp/optionChain.${symbol}.tmp.$$.json_"
|
||||
if [[ "${ErrorLogLevel}" == "err" ]]; then
|
||||
throw ${errMsg} ${ErrorLogLevel} 2
|
||||
throw "${errMsg}" ${ErrorLogLevel} 2
|
||||
else
|
||||
log ${errMsg} ${ErrorLogLevel}
|
||||
log "${errMsg}" ${ErrorLogLevel}
|
||||
fi
|
||||
else
|
||||
optionChainFileName=$(date "+%Y-%m-%d %H_%M_%S")_optionChain.${symbol}.json
|
||||
|
||||
Reference in New Issue
Block a user