Improve shell scripts

This commit is contained in:
James Shubin
2016-02-10 22:20:45 -05:00
parent 40476a66c2
commit e921dfa498
3 changed files with 6 additions and 4 deletions

View File

@@ -30,6 +30,7 @@
- :name: etcd
:shell:
- iptables -F
- cd /vagrant/mgmt/ && make path
- cd /vagrant/mgmt/ && make deps && make build && cp mgmt ~/bin/
- etcd -bind-addr "`hostname --ip-address`:2379" &
- cd && mgmt --help

View File

@@ -12,7 +12,7 @@ fi
ROOT=$(dirname "${BASH_SOURCE}")/..
RUBY=`which ruby`
RUBY=`which ruby 2>/dev/null`
if [ -z $RUBY ]; then
echo "The 'ruby' utility can't be found."
exit 1