From 94520447469368dd9adf0d2a613aae95713a96b7 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Fri, 18 Oct 2024 23:34:54 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E8=BF=87=E6=BB=A4=20reinstall.sh=20?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E6=96=87=E4=BB=B6=E7=9A=84=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reinstall.sh b/reinstall.sh index 12d0924..c7f2263 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -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