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 <