From cfabdcf7dab34d86d3ad5c54544a55cd9e403a6d Mon Sep 17 00:00:00 2001 From: Simon Let Date: Sun, 15 Dec 2019 00:07:09 +0100 Subject: [PATCH] minor fixes --- .gitmodules | 2 +- scripts/install_helper.sh | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4d42b4f..52039ba 100644 --- a/.gitmodules +++ b/.gitmodules @@ -3,4 +3,4 @@ url = https://github.com/rcaloras/bash-preexec.git [submodule "submodules/bash-zsh-compat-widgets"] path = submodules/bash-zsh-compat-widgets - url = git@github.com:curusarn/bash-zsh-compat-widgets.git + url = https://github.com/curusarn/bash-zsh-compat-widgets.git diff --git a/scripts/install_helper.sh b/scripts/install_helper.sh index 4ded1be..2115c54 100755 --- a/scripts/install_helper.sh +++ b/scripts/install_helper.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -o pipefail + resh_git_dir=~/.resh_git if ! go version &>/dev/null; then @@ -102,7 +104,13 @@ else read x curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh - [ $? -eq 0 ] && echo "Installed dep." + if [ $? -eq 0 ]; then + echo "Installed dep." + else + echo "Installing dep failed - exiting!" + exit + fi + fi project_path=$GOPATH/src/github.com/curusarn/resh