From 9aaa5e2a652faa4c2625aec2d2f9c3160ec585b7 Mon Sep 17 00:00:00 2001 From: hiCasper Date: Tue, 13 Dec 2022 01:13:07 +0800 Subject: [PATCH] Log installation to file --- scripts/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/install.sh b/scripts/install.sh index 811cd97cd..71b3db9ce 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -18,7 +18,7 @@ if [ "$EUID" -ne 0 ] exit fi - +{ if [ ${_os} == "Darwin" ]; then OSNAME='macos' @@ -137,3 +137,4 @@ endTime=`date +%s` ((outTime=(${endTime}-${startTime})/60)) echo -e "Time consumed:\033[32m $outTime \033[0mMinute!" +} 1> >(tee mw-install.log) 2>&1 \ No newline at end of file