Skip to content

Commit eb38af6

Browse files
committed
fix(boot): silence shellcheck complaints
1 parent 38b0792 commit eb38af6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rootfs/bin/boot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ sleep $((ETCD_TTL+1))
2828

2929
function etcd_set_default {
3030
set +e
31-
ERROR="$(etcdctl --no-sync -C "$ETCD" mk "$ETCD_PATH/$1" "$2" 2>&1 >/dev/null)"
31+
ERROR="$(etcdctl --no-sync -C "$ETCD" mk "$ETCD_PATH/$1" "$2" 2>&1)"
3232
if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists"; then
3333
echo "etcd_set_default: an etcd error occurred ($ERROR)"
3434
echo "aborting..."
@@ -39,7 +39,7 @@ function etcd_set_default {
3939

4040
function etcd_safe_mkdir {
4141
set +e
42-
ERROR="$(etcdctl --no-sync -C "$ETCD" mkdir "$1" 2>&1 >/dev/null)"
42+
ERROR="$(etcdctl --no-sync -C "$ETCD" mkdir "$1" 2>&1)"
4343

4444
if [[ $? -ne 0 ]] && echo "$ERROR" | grep -iqve "key already exists"; then
4545
echo "etcd_safe_mkdir: an etcd error occurred ($ERROR)"

0 commit comments

Comments
 (0)