File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -191,12 +191,13 @@ if [ -n "$GHE_VERBOSE" ]; then
191
191
calling_script_name=" $( caller | sed ' s:.*/::' ) "
192
192
date_format=$( date -u " +%FT%TZ" )
193
193
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
195
196
else
196
197
# colorize the input if supported.
197
- display_info=" ${GREEN} INFO${NC} "
198
198
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
200
201
fi
201
202
fi
202
203
else
You can’t perform that action at this time.
0 commit comments