Commit f7a77ed1 by Peter Eacmen

fail deps.sh if any install command fails

parent 80a519b6
...@@ -3,3 +3,4 @@ dist ...@@ -3,3 +3,4 @@ dist
.coverage .coverage
*.extracted *.extracted
*.pyc *.pyc
**/*.egg-info
\ No newline at end of file
...@@ -8,7 +8,9 @@ else ...@@ -8,7 +8,9 @@ else
YES=0 YES=0
fi fi
set -eu
set -o nounset set -o nounset
set -x
if ! which lsb_release > /dev/null if ! which lsb_release > /dev/null
then then
...@@ -65,6 +67,7 @@ PIP_COMMANDS="pip3" ...@@ -65,6 +67,7 @@ PIP_COMMANDS="pip3"
# Check for root privileges # Check for root privileges
if [ $UID -eq 0 ] if [ $UID -eq 0 ]
then then
echo "UID is 0, sudo not required"
SUDO="" SUDO=""
else else
SUDO="sudo" SUDO="sudo"
...@@ -80,7 +83,7 @@ function install_yaffshiv ...@@ -80,7 +83,7 @@ function install_yaffshiv
function install_sasquatch 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) (cd sasquatch && $SUDO ./build.sh)
$SUDO rm -rf sasquatch $SUDO rm -rf sasquatch
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment