From fd0c4edae3205f361e8ad16c1e033baaa4cb22e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20P=C3=89RON?= <44115467+nicerloop@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:08:08 +0200 Subject: [PATCH] px: Fix px.ini creation for persist (#5610) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * px: fix px.ini creation for persist directive * px: remove unnecessary env_set * px: fix pre_install to stop overwriting --------- Co-authored-by: Loïc PÉRON Co-authored-by: tech189 --- bucket/px.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bucket/px.json b/bucket/px.json index 97149c20fd..ab9e400f69 100644 --- a/bucket/px.json +++ b/bucket/px.json @@ -9,6 +9,10 @@ "hash": "0e492431ef836091d34f44a6de8caf2a0aaef1737ba7b8202fa54285a5db4101" } }, + "pre_install": [ + "if (Test-Path -PathType Container \"$persist_dir\\px.ini\") { Remove-Item \"$persist_dir\\px.ini\" } # removes folder px.ini if exists", + "if (!(Test-Path \"$persist_dir\\px.ini\")) { New-Item \"$dir\\px.ini\" | Out-Null } # creates config file px.ini if doesn't exist" + ], "bin": "px.exe", "persist": "px.ini", "checkver": "github",