Force install in install-all scripts (#8194)

Otherwise, one has to remove old installations manually
This commit is contained in:
Hofer-Julian 2023-02-24 18:54:19 +01:00 committed by GitHub
parent 4dd9d0d46b
commit 85bfdca578
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ Write-Output ""
Write-Output "Install nushell from local..." Write-Output "Install nushell from local..."
Write-Output "----------------------------------------------" Write-Output "----------------------------------------------"
cargo install --path . --features=dataframe cargo install --force --path . --features=dataframe
$NU_PLUGINS = @( $NU_PLUGINS = @(
'nu_plugin_example', 'nu_plugin_example',
@ -25,7 +25,7 @@ foreach ( $plugin in $NU_PLUGINS) {
Write-Output "Install plugin $plugin from local..." Write-Output "Install plugin $plugin from local..."
Write-Output "----------------------------------------------" Write-Output "----------------------------------------------"
Set-Location crates/$plugin Set-Location crates/$plugin
cargo install --path . cargo install --force --path .
Set-Location ../../ Set-Location ../../
} }

View File

@ -9,7 +9,7 @@ echo ""
echo "Install nushell from local..." echo "Install nushell from local..."
echo "----------------------------------------------" echo "----------------------------------------------"
cargo install --path . --features=dataframe cargo install --force --path . --features=dataframe
NU_PLUGINS=( NU_PLUGINS=(
'nu_plugin_inc' 'nu_plugin_inc'
@ -26,5 +26,5 @@ do
echo "----------------------------------------------" echo "----------------------------------------------"
echo "Install plugin $plugin from local..." echo "Install plugin $plugin from local..."
echo "----------------------------------------------" echo "----------------------------------------------"
cd crates/"$plugin" && cargo install --path . && cd ../../ cd crates/"$plugin" && cargo install --force --path . && cd ../../
done done