From 86caf0551641d19470bb04fae3f90373632d6413 Mon Sep 17 00:00:00 2001 From: neo Date: Mon, 21 Aug 2023 12:40:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index a8305f0..610c6aa 100755 --- a/install.sh +++ b/install.sh @@ -39,6 +39,28 @@ then abort 'Bash must not run in POSIX mode. Please unset POSIXLY_CORRECT and try again.' fi +usage() { + cat <${tty_bold} %s${tty_reset}\n" "$(shell_join "$@")" } -highlight() { - printf "${tty_green} %s${tty_reset}\n" "$(shell_join "$@")" -} - warn() { printf "${tty_red}Warning${tty_reset}: %s\n" "$(chomp "$1")" >&2 } +highlight() { + printf "${tty_green} %s${tty_reset}\n" "$(shell_join "$@")" +} + checkExecute() { if [ $? -ne 0 ];then echo "${tty_red}执行成功 '$1'${tty_reset}" @@ -589,13 +611,21 @@ EOABORT echo "$( cat <