Fix: pipeline error after 8 pending sql

bash thinks that 08 is a hex number, so we have to cast the base

More info here: https://stackoverflow.com/questions/24777597/value-too-great-for-base-error-token-is-08
This commit is contained in:
Yehonal 2021-02-14 20:26:29 +01:00 committed by GitHub
parent 75569dd824
commit d88e14be4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,7 @@ function import() {
oldDate=${dateLast%_$tmp}
if [ "$oldDate" = "$dateToday" ]; then
((counter=$oldCnt+1))
((counter=10#$oldCnt+1)) # 10 # is needed to explictly add to a base 10 number
fi;
for entry in "$pendingPath"/*.sql