Skip to content

Commit 62089de

Browse files
committed
fix broken echo
1 parent 028faef commit 62089de

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

share/github-backup-utils/ghe-backup-config

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,12 +191,13 @@ if [ -n "$GHE_VERBOSE" ]; then
191191
calling_script_name="$(caller | sed 's:.*/::')"
192192
date_format=$(date -u "+%FT%TZ")
193193
if [ "$TERM" = "dumb" ] || [[ "$OUTPUT_COLOR" != "yes" ]]; then
194-
exec 3> >(echo -e "$date_format INFO $calling_script_name: $*" >>"$GHE_VERBOSE_LOG")
194+
exec 3>>"$GHE_VERBOSE_LOG"
195+
log_info "$calling_script_name: $*" 1>&3
195196
else
196197
# colorize the input if supported.
197-
display_info=" ${GREEN}INFO${NC} "
198198
display_caller="${BLUE}$calling_script_name${NC}"
199-
exec 3> >(echo -e "$date_format $display_info $display_caller: $*" >>"$GHE_VERBOSE_LOG")
199+
exec 3>>"$GHE_VERBOSE_LOG"
200+
log_info "$display_caller: $*" 1>&3
200201
fi
201202
fi
202203
else

0 commit comments

Comments
 (0)