Skip to content

Commit

Permalink
Warning envsubst is required for some scripts
Browse files Browse the repository at this point in the history
Somes script wont work on Mac because envsubst is required.
  • Loading branch information
suizman committed Apr 15, 2019
1 parent ae81013 commit 5bfbf6c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/gossip/membership.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/bin/bash

if ! which envsubst
then
echo -e "Please install envsubst. OSX -> brew install gettext ; brew link --force gettext"
exit 1
fi

# client options
CLIENT_CONFIG=()
CLIENT_CONFIG+=("--log debug")
Expand Down
6 changes: 6 additions & 0 deletions tests/start_agent
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

if ! which envsubst
then
echo -e "Please install envsubst. OSX -> brew install gettext ; brew link --force gettext"
exit 1
fi

CGO_LDFLAGS_ALLOW='.*'
QED="go run $GOPATH/src/github.com/bbva/qed/main.go"

Expand Down
6 changes: 6 additions & 0 deletions tests/start_server
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ if [ -z $n ]; then
n=0
fi

if ! which envsubst
then
echo -e "Please install envsubst. OSX -> brew install gettext ; brew link --force gettext"
exit 1
fi

mkdir -p /var/tmp/qed-log-0
leader=$(echo ${LEADER_CONFIG[@]} | i=0 envsubst )
$QED server start $leader 2>&1 | tee /var/tmp/qed-log-0/server.log &
Expand Down

0 comments on commit 5bfbf6c

Please sign in to comment.