23178a997a
blind grep is error-prone. Add assertions for errors we can not handle Change-Id: Ibe19085545ecc848498506e8b8ee14e71825b273
10 lines
305 B
Bash
Executable File
10 lines
305 B
Bash
Executable File
#!/bin/bash
|
|
# Echo commands, exit on error
|
|
set -o xtrace
|
|
set -o errexit
|
|
|
|
TOP_DIR=$(cd ../../.. && pwd)
|
|
HEAD_IP=`cat $TOP_DIR/addresses | grep HEAD | cut -d "=" -f2`
|
|
die_if_not_set $LINENO HEAD_IP "Failure retrieving HEAD_IP"
|
|
ssh stack@$HEAD_IP 'cd devstack && source openrc && cd exercises && ./euca.sh'
|