File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
share/github-backup-utils Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change 14
14
# . $( dirname "${BASH_SOURCE[0]}" )/../share/github-backup-utils/ghe-backup-config
15
15
#
16
16
set +o posix
17
+ # Terminal colors
18
+ RED=' \033[0;31m'
19
+ GREEN=' \033[0;32m'
20
+ YELLOW=' \033[0;33m'
21
+ NC=' \033[0m' # No Color
22
+
17
23
# Assume this script lives in share/github-backup-utils/ when setting the root
18
24
GHE_BACKUP_ROOT=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /../.." && pwd) "
19
25
@@ -187,7 +193,7 @@ if [ -n "$GHE_VERBOSE" ]; then
187
193
fi
188
194
calling_script_name=" $( caller | sed ' s:.*/::' ) "
189
195
date_format=$( date -u " +%FT%TZ" )
190
- exec 3> >( awk -v c= " $calling_script_name " d= " $date_format " ' { print d" INFO ", c":", $0; fflush(); }' >> " $GHE_VERBOSE_LOG " )
196
+ exec 3> >( awk -v ' { print d" INFO ", c":", $0; fflush(); }' c= " $calling_script_name " d= " $date_format " >> " $GHE_VERBOSE_LOG " )
191
197
fi
192
198
else
193
199
exec 3>&1
@@ -563,13 +569,10 @@ restore-secret() {
563
569
fi
564
570
}
565
571
566
- # Logging display and formatting functions
567
572
568
- # Terminal colors
569
- RED=' \033[0;31m'
570
- GREEN=' \033[0;32m'
571
- YELLOW=' \033[0;33m'
572
- NC=' \033[0m' # No Color
573
+
574
+
575
+ # Logging display and formatting functions
573
576
574
577
# Log a message to stdout
575
578
log_level () {
You can’t perform that action at this time.
0 commit comments