From b668c3de230370ae4070e2188b031fb87502dfb9 Mon Sep 17 00:00:00 2001 From: CrendKing <975235+CrendKing@users.noreply.github.com> Date: Mon, 8 Nov 2021 22:11:59 -0800 Subject: [PATCH] rclone: Persist rclone.conf (#2908) * Persist rclone.conf in application directory for portability. Fix issue #1634 * Address comments about omitting error msg * Update rclone.json Co-authored-by: Rashil Gandhi <46838874+rashil2000@users.noreply.github.com> --- bucket/rclone.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bucket/rclone.json b/bucket/rclone.json index 3c24a1edfd..b2ee9b0d08 100644 --- a/bucket/rclone.json +++ b/bucket/rclone.json @@ -15,7 +15,9 @@ "extract_dir": "rclone-v1.56.2-windows-386" } }, + "pre_install": "if (!(Test-Path \"$persist_dir\\rclone.conf\")) { New-Item -ItemType File \"$dir\\rclone.conf\" | Out-Null }", "bin": "rclone.exe", + "persist": "rclone.conf", "checkver": { "github": "https://github.com/rclone/rclone" },