From d88e14be4ef2cd93ffdaacb2d85e505542e80909 Mon Sep 17 00:00:00 2001 From: Yehonal Date: Sun, 14 Feb 2021 20:26:29 +0100 Subject: [PATCH] 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 --- apps/db_pendings/import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/db_pendings/import.sh b/apps/db_pendings/import.sh index 8879482fc..3abf53ce6 100644 --- a/apps/db_pendings/import.sh +++ b/apps/db_pendings/import.sh @@ -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