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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user