Skip to content

Commit

Permalink
Add --fail and set -e when setting up Browsh
Browse files Browse the repository at this point in the history
As per @zutto's suggestion in #62

This will at least notify us when something goes wrong during a Docker
build.
  • Loading branch information
tombh committed Jul 9, 2018
1 parent 29132f3 commit 90078ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion interfacer/contrib/setup_browsh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
# repeat the build process (having done so in Travis after successfully
# passing tests). So we simply just download the already built binary.

set -e

if [ ! -f manifest.json ]; then
PROJECT_ROOT=$(git rev-parse --show-toplevel)/webext
else
Expand All @@ -21,5 +23,5 @@ version=$(echo $line | grep -o '".*"' | cut -d " " -f 2 | sed 's/"//g')
base='https://github.com/browsh-org/browsh/releases/download'
release_url="$base/v$version/browsh_${version}_linux_amd64"

curl -L -o browsh $release_url
curl -L -o --fail browsh $release_url
chmod a+x browsh

0 comments on commit 90078ff

Please sign in to comment.