Skip to content

Commit

Permalink
Adjust the prompt font color
Browse files Browse the repository at this point in the history
  • Loading branch information
ophub committed Jan 3, 2022
1 parent cf08a48 commit 6ace7fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions compile-kernel/tools/script/generate_uinitrd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ chroot_arch_info=$(arch)
chroot_kernel_version="${1}"

# Set font color
blue_font_prefix="\033[34m"
purple_font_prefix="\033[35m"
green_font_prefix="\033[32m"
yellow_font_prefix="\033[33m"
red_font_prefix="\033[31m"
blue_font_prefix="\033[94m"
purple_font_prefix="\033[95m"
green_font_prefix="\033[92m"
yellow_font_prefix="\033[93m"
red_font_prefix="\033[91m"
font_color_suffix="\033[0m"
INFO="[${blue_font_prefix}INFO${font_color_suffix}]"
STEPS="[${purple_font_prefix}STEPS${font_color_suffix}]"
Expand Down
4 changes: 2 additions & 2 deletions rebuild
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ ROOT_MB=2748
#===== Do not modify the following parameter settings, End =======

die() {
echo -e " [\033[1;31m Error \033[0m] ${1}"
echo -e " [\033[1;91m Error \033[0m] ${1}"
exit 1
}

process() {
echo -e " [\033[1;32m ${build_soc}${out_kernel} \033[0m] ${1}"
echo -e " [\033[1;92m ${build_soc}${out_kernel} \033[0m] ${1}"
}

download_kernel() {
Expand Down
10 changes: 5 additions & 5 deletions recompile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,11 @@ armbian_tmp_file="${out_kernel}/tmp/armbian.img"
armbian_chroot_file="${out_kernel}/armbian/armbian.img"

# Set font color
blue_font_prefix="\033[34m"
purple_font_prefix="\033[35m"
green_font_prefix="\033[32m"
yellow_font_prefix="\033[33m"
red_font_prefix="\033[31m"
blue_font_prefix="\033[94m"
purple_font_prefix="\033[95m"
green_font_prefix="\033[92m"
yellow_font_prefix="\033[93m"
red_font_prefix="\033[91m"
font_color_suffix="\033[0m"
INFO="[${blue_font_prefix}INFO${font_color_suffix}]"
STEPS="[${purple_font_prefix}STEPS${font_color_suffix}]"
Expand Down

0 comments on commit 6ace7fe

Please sign in to comment.