1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
read -r -d '' msg << TIP ================================\n Execute\e[1m adhost \e[0mfor updating hosts: \n -------------------------\n 执行\e[1m adhost \e[0m命令可升级hosts.\n ================================ TIP post_install(){ echo -e $msg } post_upgrade(){ echo -e $msg }