Implement stitiching as fallback, better error handling, add new symbols.
This commit is contained in:
@@ -19,11 +19,13 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
if [[ '$XSP' = ${theSymbol} ]]; then
|
||||
./recordOptionChainSingleSymbolSingleRun.sh ${theSymbol} toDate $(date "+%Y-%m-%d" -d "+200 days")
|
||||
if [[ $? -ne 0 ]]; then
|
||||
touch temp/hadErrors.$$.tmp
|
||||
systemd-cat -t "`basename $0`" -p warning <<< "falling back to stitching for ${theSymbol}"
|
||||
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
|
||||
if [[ $? -ne 0 ]]; then
|
||||
touch temp/hadErrors.$$.tmp
|
||||
fi
|
||||
fi
|
||||
|
||||
# The above one might fail, so we also try with stitching
|
||||
./recordOptionChainSingleSymbolSpecialRun.sh ${theSymbol}
|
||||
continue
|
||||
fi
|
||||
|
||||
@@ -37,7 +39,6 @@ jq -r '.[].Symbol' allSymbols.json | sort | while read theSymbol; do
|
||||
fi
|
||||
fi
|
||||
|
||||
# The above one might fail, so we also try with stitching
|
||||
continue
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user