build: Lint shell scripts, and make all shell scripts lint cleanly

This commit is contained in:
James Nugent
2017-09-08 19:42:42 -05:00
parent 9ec82bc545
commit e8c17e2aba
8 changed files with 32 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#!/bin/bash
if [[ "$USER" != "vagrant" ]]; then
echo "WARNING: This script is intended to be run from Nomad's Vagrant"
read -rsp $'Press any key to continue anyway...\n' -n1 key
read -rsp $'Press any key to continue anyway...\n' -n1
fi
set -e
@@ -12,7 +12,7 @@ if [[ ! -a /usr/local/bin/weave ]]; then
sudo chmod a+x /usr/local/bin/weave
fi
weave launch || echo "weave running"
eval $(weave env)
eval "$(weave env)"
if curl -s localhost:8500 > /dev/null; then
echo "Consul running"