From 917eddef82c1ff2a4e9497b456a2dfdaca714efe Mon Sep 17 00:00:00 2001 From: Sunset Mikoto <26019675+lwd-temp@users.noreply.github.com> Date: Tue, 19 Sep 2023 23:43:57 +0800 Subject: [PATCH] bbdown: Touch BBDown.data before adding it to persist (#5114) * (chore): touch BBDown.data before adding it to persist * (chore): fix escape characters Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --------- Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/bbdown.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bucket/bbdown.json b/bucket/bbdown.json index 5a22e08073..d9185711a1 100644 --- a/bucket/bbdown.json +++ b/bucket/bbdown.json @@ -14,6 +14,13 @@ "hash": "a86dfe76d9c8a526c39a518f6958da2036dbc5644330afbf75d7fa10bccabc57" } }, + "pre_install": [ + "'BBDown.data' | ForEach-Object {", + " if (!(Test-Path -Path \"$persist_dir\\$_\")) {", + " New-Item -Type File \"$dir\\$_\" | Out-Null", + " }", + "}" + ], "bin": "BBDown.exe", "persist": "BBDown.data", "checkver": {