mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
core: 过滤 reinstall.sh 日志文件的密码
This commit is contained in:
parent
05c15c0964
commit
9452044746
@ -18,8 +18,8 @@ export LC_ALL=C
|
||||
# 不要漏了最后的 $PATH,否则会找不到 windows 系统程序例如 diskpart
|
||||
export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$PATH
|
||||
|
||||
# 记录日志
|
||||
exec > >(exec tee /reinstall.log) 2>&1
|
||||
# 记录日志,过滤含有 password 的行
|
||||
exec > >(tee >(grep -iv password >>/reinstall.log)) 2>&1
|
||||
THIS_SCRIPT=$(readlink -f "$0")
|
||||
trap 'trap_err $LINENO $?' ERR
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user