diff --git a/build-all-maclin.sh b/build-all-maclin.sh index 61818f8b5..45b0cac26 100755 --- a/build-all-maclin.sh +++ b/build-all-maclin.sh @@ -1,4 +1,5 @@ -#!/bin/sh +#!/usr/bin/env bash +set -euo pipefail echo "---------------------------------------------------------------" echo "Building nushell (nu) with dataframes and all the plugins" @@ -17,7 +18,7 @@ echo "Building nushell" cargo build --features=dataframe for plugin in "${NU_PLUGINS[@]}" do - echo '' && cd crates/$plugin + echo '' && cd crates/"$plugin" echo "Building $plugin..." echo "-----------------------------" cargo build && cd ../.. diff --git a/install-all.sh b/install-all.sh index ef70d5848..abbf810a8 100755 --- a/install-all.sh +++ b/install-all.sh @@ -1,6 +1,6 @@ -#!/bin/sh - -# Usage: Just run `sh install-all.sh` in nushell root directory +#!/usr/bin/env bash +# Usage: Just run `./install-all.sh` in nushell root directory +set -euo pipefail echo "-----------------------------------------------------------------" echo "Installing nushell (nu) with dataframes and all the plugins" @@ -25,5 +25,5 @@ do echo "----------------------------------------------" echo "Install plugin $plugin from local..." echo "----------------------------------------------" - cd crates/$plugin && cargo install --path . && cd ../../ + cd crates/"$plugin" && cargo install --path . && cd ../../ done diff --git a/uninstall-all.sh b/uninstall-all.sh index ddcd46640..fa24d88ca 100755 --- a/uninstall-all.sh +++ b/uninstall-all.sh @@ -1,4 +1,6 @@ -#!/bin/sh +#!/usr/bin/env bash + +set -euo pipefail echo '' echo "----------------------------------------------" @@ -15,5 +17,5 @@ NU_PLUGINS=( cargo uninstall nu for plugin in "${NU_PLUGINS[@]}" do - cargo uninstall $plugin + cargo uninstall "$plugin" done