Skip to content

Commit aaeb33e

Browse files
committed
Merge pull request #4148 from mboersma/fix-controller-boot
fix(controller): remove extra bracketing
2 parents ae88f2a + 053ab39 commit aaeb33e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/bin/boot

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function etcd_set_default {
2828
set +e
2929
ERROR="$(etcdctl --no-sync -C "$ETCD" mk "$ETCD_PATH/$1" "$2" 2>&1 >/dev/null)"
3030

31-
if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists" ]]; then
31+
if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists"; then
3232
echo "etcd_set_default: an etcd error occurred ($ERROR)"
3333
echo "aborting..."
3434
exit 1

0 commit comments

Comments
 (0)