Check for the existence of JSON file before creating it in add_json_target function
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
gyurix
2025-08-07 16:08:55 +02:00
parent 566aed3752
commit 72e14d7199

View File

@@ -99,8 +99,8 @@ add_json_target(){
if [ -n "$TASK_NAME" ]; then if [ -n "$TASK_NAME" ]; then
TASK="upgrade-$TASK_NAME" TASK="upgrade-$TASK_NAME"
fi 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 install -m 664 -g 65534 /dev/null $SHARED/output/$TASK.json
fi fi
echo $JSON_TARGET | base64 -d >$SHARED/output/$TASK.json echo $JSON_TARGET | base64 -d >$SHARED/output/$TASK.json