We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2919065 + 16c006b commit e2b9c12Copy full SHA for e2b9c12
1 file changed
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