From 72e14d7199d1a6460747e9b02f65d0b7d6db6eff Mon Sep 17 00:00:00 2001 From: gyurix Date: Thu, 7 Aug 2025 16:08:55 +0200 Subject: [PATCH] Check for the existence of JSON file before creating it in add_json_target function --- scripts/scheduler/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index f910c0c..6c1933f 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -99,8 +99,8 @@ add_json_target(){ if [ -n "$TASK_NAME" ]; then TASK="upgrade-$TASK_NAME" fi - - if [ -z $SHARED/output/$TASK.json ]; then + + if [ ! -f $SHARED/output/$TASK.json ]; then install -m 664 -g 65534 /dev/null $SHARED/output/$TASK.json fi echo $JSON_TARGET | base64 -d >$SHARED/output/$TASK.json