allow for null 5th parameter

Change-Id: Ib2fa030b52403a293f379f8c4ffa8e81ec5c2840
This commit is contained in:
Ray Milkey 2018-03-09 09:52:29 -08:00
parent 2c6ffb8c95
commit 32e73d7783

View File

@ -228,7 +228,7 @@ function cell {
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