Log installation to file

This commit is contained in:
hiCasper 2022-12-13 01:13:07 +08:00
parent 821a9ce2d1
commit 9aaa5e2a65
1 changed files with 2 additions and 1 deletions

View File

@ -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