fix docker_start without using jq (#1855)
* fix docker_start without using jq
This commit is contained in:
parent
f860a037b5
commit
59fc403e32
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ if [ "$DISABLE_POSTOVERFLOWS" != "" ]; then
|
|||
fi
|
||||
|
||||
function register_bouncer {
|
||||
if ! cscli -c "$CS_CONFIG_FILE" bouncers list -o json | jq -r .[].name | grep -q "${NAME}"; then
|
||||
if ! cscli -c "$CS_CONFIG_FILE" bouncers list -o json | sed '/^ *"name"/!d;s/^ *"name": "\(.*\)",/\1/' | grep -q "^${NAME}$"; then
|
||||
if cscli -c "$CS_CONFIG_FILE" bouncers add "${NAME}" -k "${KEY}" > /dev/null; then
|
||||
echo "Registered bouncer for ${NAME}"
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue