Skip to content

Commit 93b22c8

Browse files
committed
remove lando/core plugin from windows installer if detected
1 parent dfb9298 commit 93b22c8

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

setup-lando.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,12 @@ Confirm-Environment
597597
# Select the appropriate architecture
598598
$Arch = Select-Architecture
599599

600+
# Remove @lando core if applicable
601+
if (-not (Test-Path "$env:USERPROFILE\.lando\plugins\@lando\core" -ErrorAction SilentlyContinue)) {
602+
Write-Debug "Removing detectecd core plugin from $env:USERPROFILE\.lando\plugins\@lando..."
603+
Remove-Item -Path "$env:USERPROFILE\.lando\plugins\@lando\core" -Recurse -Force
604+
}
605+
600606
# Set up our working directory
601607
if (-not (Test-Path "$LANDO_APPDATA" -ErrorAction SilentlyContinue)) {
602608
Write-Debug "Creating destination directory $LANDO_APPDATA..."

setup-lando.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ get_installer_os
161161
# see https://github.blog/changelog/2022-05-24-github-actions-re-run-jobs-with-debug-logging/
162162

163163
# @TODO: no-sudo option
164-
# @TODO: dest
164+
# @TODO: dest based on mv?
165165
ARCH="${LANDO_INSTALLER_ARCH:-"$INSTALLER_ARCH"}"
166166
DEBUG="${LANDO_INSTALLER_DEBUG:-${RUNNER_DEBUG:-}}"
167167
DEST="${LANDO_INSTALLER_DEST:-/usr/local/bin}"

0 commit comments

Comments
 (0)