We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e3c374 commit 053ab39Copy full SHA for 053ab39
1 file changed
controller/bin/boot
@@ -28,7 +28,7 @@ function etcd_set_default {
28
set +e
29
ERROR="$(etcdctl --no-sync -C "$ETCD" mk "$ETCD_PATH/$1" "$2" 2>&1 >/dev/null)"
30
31
- if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists" ]]; then
+ if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists"; then
32
echo "etcd_set_default: an etcd error occurred ($ERROR)"
33
echo "aborting..."
34
exit 1
0 commit comments