fail if zsh & git cannot be installed
This commit is contained in:
parent
2e636bc4f6
commit
137c97c97c
1 changed files with 3 additions and 1 deletions
4
newbox
4
newbox
|
|
@ -1,5 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e # bail on errors
|
||||||
|
|
||||||
fail() {
|
fail() {
|
||||||
echo "error: $@"
|
echo "error: $@"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -25,7 +27,7 @@ install() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
install zsh git
|
install zsh git || fail "Failed to install zsh & git."
|
||||||
|
|
||||||
cd ~
|
cd ~
|
||||||
if ! [[ -d config ]]; then
|
if ! [[ -d config ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue