Skip to content

Commit

Permalink
fail deps.sh if any install command fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eacmen committed Mar 24, 2021
1 parent 80a519b commit f7a77ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ dist
.coverage
*.extracted
*.pyc
**/*.egg-info
5 changes: 4 additions & 1 deletion deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ else
YES=0
fi

set -eu
set -o nounset
set -x

if ! which lsb_release > /dev/null
then
Expand Down Expand Up @@ -65,6 +67,7 @@ PIP_COMMANDS="pip3"
# Check for root privileges
if [ $UID -eq 0 ]
then
echo "UID is 0, sudo not required"
SUDO=""
else
SUDO="sudo"
Expand All @@ -80,7 +83,7 @@ function install_yaffshiv

function install_sasquatch
{
git clone https://github.com/devttys0/sasquatch
git clone --quiet --depth 1 --branch "patch-1" https://github.com/eacmen/sasquatch
(cd sasquatch && $SUDO ./build.sh)
$SUDO rm -rf sasquatch
}
Expand Down

0 comments on commit f7a77ed

Please sign in to comment.