diff --git a/update-Nitrov3.sh b/update-Nitrov3.sh index 0a0e8fb..13f5263 100755 --- a/update-Nitrov3.sh +++ b/update-Nitrov3.sh @@ -134,28 +134,22 @@ yarn build echo "--> Synchronizing Gamedata configurations..." mkdir -p "$GAMEDATA_CONF_DIR" -# --- Renderer Config Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/renderer-config.json" ] || [ "${NITRO_SRC_DIR}/renderer-config.example" -nt "$GAMEDATA_CONF_DIR/renderer-config.json" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/renderer-config.example" ]; then - echo "--> Updating renderer-config.json from latest example..." - cp "$NITRO_SRC_DIR/renderer-config.example" "$GAMEDATA_CONF_DIR/renderer-config.json" - fi +# --- Renderer Config Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/renderer-config.example" ]; then + echo "--> Updating renderer-config.json from latest example..." + cp "$NITRO_SRC_DIR/renderer-config.example" "$GAMEDATA_CONF_DIR/renderer-config.json" fi -# --- UI Config Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/ui-config.json" ] || [ "${NITRO_SRC_DIR}/ui-config.json.example" -nt "$GAMEDATA_CONF_DIR/ui-config.json" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/ui-config.json.example" ]; then - echo "--> Updating ui-config.json from latest example..." - cp "$NITRO_SRC_DIR/ui-config.json.example" "$GAMEDATA_CONF_DIR/ui-config.json" - fi +# --- UI Config Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/ui-config.json.example" ]; then + echo "--> Updating ui-config.json from latest example..." + cp "$NITRO_SRC_DIR/ui-config.json.example" "$GAMEDATA_CONF_DIR/ui-config.json" fi -# --- UITexts Sync --- -if [ ! -f "$GAMEDATA_CONF_DIR/UITexts.json5" ] || [ "${NITRO_SRC_DIR}/UITexts.json5.example" -nt "$GAMEDATA_CONF_DIR/UITexts.json5" 2>/dev/null ]; then - if [ -f "$NITRO_SRC_DIR/UITexts.json5.example" ]; then - echo "--> Updating UITexts.json5 from latest example..." - cp "$NITRO_SRC_DIR/UITexts.json5.example" "$GAMEDATA_CONF_DIR/UITexts.json5" - fi +# --- UITexts Sync (always from latest example) --- +if [ -f "$NITRO_SRC_DIR/UITexts.json5.example" ]; then + echo "--> Updating UITexts.json5 from latest example..." + cp "$NITRO_SRC_DIR/UITexts.json5.example" "$GAMEDATA_CONF_DIR/UITexts.json5" fi