Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed May 19, 2024
1 parent 28bbd67 commit 9c35f14
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ warn() {
}

success() {
printf '%b\n' "${COLOR_GREEN}[✔] $*${COLOR_OFF}" >&2
printf '%b\n' "${COLOR_GREEN}✅️ $*${COLOR_OFF}" >&2
}

error() {
Expand Down Expand Up @@ -4543,14 +4543,13 @@ inspect_install_arguments() {

#########################################################################################

if [ "$LOG_LEVEL" -eq "$LOG_LEVEL_QUIET" ] ; then
if [ "$LOG_LEVEL" -ge "$LOG_LEVEL_VERY_VERBOSE" ] ; then
export NDKPKG_VERBOSE=1
elif [ "$LOG_LEVEL" -ge "$LOG_LEVEL_VERBOSE" ] ; then
SED_VERBOSE=1
elif [ "$LOG_LEVEL" -eq "$LOG_LEVEL_QUIET" ] ; then
exec 1>/dev/null
exec 2>&1
else
if [ "$LOG_LEVEL" -ge "$LOG_LEVEL_VERBOSE" ] ; then
export NDKPKG_VERBOSE=1
SED_VERBOSE=1
fi
fi

#########################################################################################
Expand Down Expand Up @@ -7294,7 +7293,7 @@ $PACKAGE_ONFINAL

#########################################################################################

printf '\n%b\n' "${COLOR_PURPLE}<<< Installation ${COLOR_OFF}${COLOR_GREEN}${1}${COLOR_OFF}${COLOR_PURPLE} end${COLOR_OFF}"
printf '\n%b\n' "${COLOR_PURPLE}✅️ ${COLOR_OFF}${COLOR_GREEN}${1} was successfully installed.${COLOR_OFF}${COLOR_PURPLE}${COLOR_OFF}"

if [ -n "$PACKAGE_CAVEATS" ] ; then
printf '\n%b\n' "${COLOR_YELLOW}⚠️ Caveats:\n\n$PACKAGE_CAVEATS${COLOR_OFF}" >&2
Expand Down

0 comments on commit 9c35f14

Please sign in to comment.