Skip to content

Commit

Permalink
script will exit on command fail
Browse files Browse the repository at this point in the history
  • Loading branch information
BrightXiaoHan committed Nov 3, 2023
1 parent a7263ba commit ad72ecf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/install.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
$ErrorActionPreference = 'Stop'

# install scoop
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser # Optional: Needed to run a remote script the first time

Expand Down
1 change: 1 addition & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
# MODE: local-install, online-install or unpack. Default: online-install
MODE=${1:-online-install}
INSTALL_DIR=${HOMECLI_INSTALL_DIR:-$HOME/.homecli}
Expand Down
1 change: 1 addition & 0 deletions scripts/install_macos.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
# Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Install xcode command line tools
Expand Down
2 changes: 2 additions & 0 deletions scripts/pack.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
set -e

DIR=${HOMECLI_INSTALL_DIR:-$HOME/.homecli}
OUTFILE=${1:-homecli.tar.gz}

Expand Down
1 change: 1 addition & 0 deletions scripts/update.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
set -e
DIR=${HOMECLI_INSTALL_DIR:-$HOME/.homecli}

cd $DIR/HOME
Expand Down

0 comments on commit ad72ecf

Please sign in to comment.