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>
This commit is contained in:
Sunset Mikoto 2023-09-19 23:43:57 +08:00 committed by GitHub
parent 539957f34f
commit 917eddef82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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": {