Skip to content

Commit

Permalink
Use env to find path to bash. Fixes building and testing on systems w…
Browse files Browse the repository at this point in the history
…here bash isn't at /bin/bash.
  • Loading branch information
ggreer committed Jan 15, 2018
1 parent 25284af commit 2c09fe9
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 16 deletions.
4 changes: 3 additions & 1 deletion build
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

./build-backend
./build-frontend
4 changes: 3 additions & 1 deletion build-backend
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

# Builds the server-side golang resources for tectonic-console. For a
# complete build, you must also run build-frontend
Expand Down
4 changes: 3 additions & 1 deletion build-frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

pushd frontend
yarn install
Expand Down
5 changes: 4 additions & 1 deletion builder-run
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

#
# USAGE:
#
Expand Down
2 changes: 1 addition & 1 deletion clean
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

./clean-backend
./clean-frontend
2 changes: 1 addition & 1 deletion clean-backend
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
#!/usr/bin/env bash

rm -rf bin
2 changes: 1 addition & 1 deletion clean-frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

rm -rf frontend/node_modules
rm -rf frontend/public/dist
2 changes: 1 addition & 1 deletion frontend/test-e2e.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

set -e

Expand Down
4 changes: 3 additions & 1 deletion git-version
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

# pull the current git commit hash
COMMIT=`git rev-parse HEAD`
Expand Down
4 changes: 3 additions & 1 deletion jenkins
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

# This script contains all jenkins work.
# This runs directly on the jenkins build host.
Expand Down
4 changes: 3 additions & 1 deletion push
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

# Build, tag, and push container image to quay.io/coreos/tectonic-console
# Will push a sha-named image at every run.
Expand Down
4 changes: 3 additions & 1 deletion push-builder
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

# This script pushes the builder docker image to quay.io. You'll need
# it when you introduce new build-time dependencies or change go
Expand Down
4 changes: 3 additions & 1 deletion test
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

./test-backend
./test-frontend
5 changes: 4 additions & 1 deletion test-backend
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

#
# Run all tests (not including functional)
# ./test-backend
Expand Down
2 changes: 1 addition & 1 deletion test-frontend
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -euo pipefail

Expand Down
2 changes: 1 addition & 1 deletion test-gui
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -euo pipefail

Expand Down

0 comments on commit 2c09fe9

Please sign in to comment.