fix: change spread stdout style to header by default

This commit is contained in:
Strix 2023-11-09 20:50:24 +01:00
parent d0a5433cb8
commit 5434cceeaf
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

View file

@ -54,8 +54,8 @@ _ssh() {
for server in $SPREAD_SERVERS; do
# while loop so we get:: $SPEAD_USER@$server: <output>
case ${SPREAD_LOG_STYLE:-prefixed} in
prefixed)
case ${SPREAD_LOG_STYLE:-header} in
prefix|prefixed)
_ssh $server | while read -r line; do
printf "%s@%-10s: %s\n" "$SPREAD_USER" "$server" "$line"
done