From 85bfdca578157072e51e6972d370cfe63b0fda77 Mon Sep 17 00:00:00 2001 From: Hofer-Julian <30049909+Hofer-Julian@users.noreply.github.com> Date: Fri, 24 Feb 2023 18:54:19 +0100 Subject: [PATCH] Force install in `install-all` scripts (#8194) Otherwise, one has to remove old installations manually --- install-all.ps1 | 4 ++-- install-all.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/install-all.ps1 b/install-all.ps1 index e0ed4f545..c1f14f39f 100644 --- a/install-all.ps1 +++ b/install-all.ps1 @@ -8,7 +8,7 @@ Write-Output "" Write-Output "Install nushell from local..." Write-Output "----------------------------------------------" -cargo install --path . --features=dataframe +cargo install --force --path . --features=dataframe $NU_PLUGINS = @( 'nu_plugin_example', @@ -25,7 +25,7 @@ foreach ( $plugin in $NU_PLUGINS) { Write-Output "Install plugin $plugin from local..." Write-Output "----------------------------------------------" Set-Location crates/$plugin - cargo install --path . + cargo install --force --path . Set-Location ../../ } diff --git a/install-all.sh b/install-all.sh index b3a5b95c8..8b9bcfc7b 100755 --- a/install-all.sh +++ b/install-all.sh @@ -9,7 +9,7 @@ echo "" echo "Install nushell from local..." echo "----------------------------------------------" -cargo install --path . --features=dataframe +cargo install --force --path . --features=dataframe NU_PLUGINS=( 'nu_plugin_inc' @@ -26,5 +26,5 @@ do echo "----------------------------------------------" echo "Install plugin $plugin from local..." echo "----------------------------------------------" - cd crates/"$plugin" && cargo install --path . && cd ../../ + cd crates/"$plugin" && cargo install --force --path . && cd ../../ done