Skip to content

Commit 7e8c207

Browse files
committed
make stub script executable and quiet linter
1 parent 36003ea commit 7e8c207

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/bin/ghe-cluster-nodes

100644100755
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ done
1919

2020
CONFIG="$GHE_REMOTE_DATA_USER_DIR/common/cluster.conf"
2121

22-
hosts=$(git config -f $CONFIG --get-regexp cluster.*.hostname | cut -d ' ' -f2)
22+
hosts=$(git config -f "$CONFIG" --get-regexp cluster.*.hostname | cut -d ' ' -f2)
2323

2424
if $PRINT_UUIDS; then
2525
CONFIG="$GHE_REMOTE_DATA_USER_DIR/common/cluster.conf"
2626

27-
hosts=$(git config -f $CONFIG --get-regexp cluster.*.hostname | cut -d ' ' -f2)
27+
hosts=$(git config -f "$CONFIG" --get-regexp cluster.*.hostname | cut -d ' ' -f2)
2828

2929
if [ -z "$hosts" ]; then
3030
# Mimic `ghe-cluster-each $role -u`
@@ -34,8 +34,8 @@ if $PRINT_UUIDS; then
3434
"
3535
else
3636
for hostname in $hosts; do
37-
[ -n "$ROLE" ] && [ "$(git config -f $CONFIG cluster.$hostname.$ROLE-server)" != "true" ] && continue
38-
echo $hostname
37+
[ -n "$ROLE" ] && [ "$(git config -f "$CONFIG" cluster."$hostname"."$ROLE"-server)" != "true" ] && continue
38+
echo "$hostname"
3939
done
4040
fi
41-
fi
41+
fi

0 commit comments

Comments
 (0)