Skip to content

Commit 04cfc0b

Browse files
committed
did we actually need awk???
1 parent 02ff8b2 commit 04cfc0b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,12 @@ if [ -n "$GHE_VERBOSE" ]; then
194194
calling_script_name="$(caller | sed 's:.*/::')"
195195
date_format=$(date -u "+%FT%TZ")
196196
if [ "$TERM" = "dumb" ] || [[ "$OUTPUT_COLOR" != "yes" ]]; then
197-
exec 3> >(awk '{ print d" INFO ", c":", $0; fflush(); }' -v c="$calling_script_name" d="$date_format" >>"$GHE_VERBOSE_LOG")
197+
#exec 3> >(awk -v c="$calling_script_name" d="$date_format" '{ print d" INFO ", c":", $0; fflush(); }' >>"$GHE_VERBOSE_LOG")
198+
exec 3> >(echo -e "$date_format INFO $calling_script_name: $*" >>"$GHE_VERBOSE_LOG")
198199
else
199200
display_info=" ${GREEN}INFO${NC} "
200-
exec 3> >(awk '{ print d, i, c":", $0; fflush(); }' -v c="$calling_script_name" d="$date_format" i="$display_info" >>"$GHE_VERBOSE_LOG")
201+
#exec 3> >(awk '{ print d, i, c":", $0; fflush(); }' -v c="$calling_script_name" d="$date_format" i="$display_info" >>"$GHE_VERBOSE_LOG")
202+
exec 3> >(echo -e "$date_format $display_info $calling_script_name: $*" >>"$GHE_VERBOSE_LOG")
201203
fi
202204
fi
203205
else

0 commit comments

Comments
 (0)