mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-13 00:41:20 +00:00
~脚本进行大量拆分和优化
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#日志工具
|
||||
#$1日志内容$2显示颜色$3是否推送
|
||||
logger() {
|
||||
TMPDIR=/tmp/ShellCrash
|
||||
[ -n "$2" -a "$2" != 0 ] && echo -e "\033[$2m$1\033[0m"
|
||||
log_text="$(date "+%G-%m-%d_%H:%M:%S")~$1"
|
||||
echo "$log_text" >>"$TMPDIR"/ShellCrash.log
|
||||
|
||||
Reference in New Issue
Block a user