Allow default bash profile to be run with unbound variable checking enabled
Change-Id: I82e4028f5b3e43eedae072dda1c45156fb3b0cee
diff --git a/tools/dev/bash_profile b/tools/dev/bash_profile
index 6d38269..76359e2 100644
--- a/tools/dev/bash_profile
+++ b/tools/dev/bash_profile
@@ -140,6 +140,8 @@
*)
[ ! -f $ONOS_ROOT/tools/test/topos/$1.recipe ] && echo "No such topo recipe: $1" >&2 && return 1
unset ONOS_TOPO OTD OTL OTH ONOS_DEVICES ONOS_HOSTS
+ ONOS_DEVICES=""
+ ONOS_HOSTS=""
unset $(env | sed -n 's:\(^OT[DLH][0-9]\{1,\}\)=.*:\1 :g p')
export ONOS_TOPO=$1
. $ONOS_ROOT/tools/test/topos/$1.recipe
@@ -219,7 +221,7 @@
spec=${3:-3+1}
spec=${spec/+/%2B}
user=${4:-$(id -un)}
- hint=${5}
+ hint=${5:""}
query="duration=$duration&spec=$spec&user=$user&cellNameHint=$hint"
curl -sS -X POST "http://$CELL_WARDEN:4321/?$query" -d "$(cat ~/.ssh/id_rsa.pub)" > $aux
. $aux