From 7d8872d70daabfe4355271e127d91824b8fb286a Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 21 Oct 2024 21:06:26 +0200 Subject: [PATCH] bugfix: use $tmp dir if no destination provided --- install_windows.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install_windows.ps1 b/install_windows.ps1 index 281d08a..0fcffef 100644 --- a/install_windows.ps1 +++ b/install_windows.ps1 @@ -126,6 +126,12 @@ function ProcessUrlFiles } continue } + + # Use $tmpApp as destination in case of git repo + if (-not $destinationDir) + { $destinationPath = "$tmpApp\$fileName" + } + # If the URL is a git repository, pull it if (IsGitRepository -dir $destinationPath -url $url) {