Files
aaPanel-cracked/script/aapanel.sh
2022-06-05 14:03:52 +08:00

62 lines
1.7 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#! /bin/bash
# By Aaron
# https://github.com/AaronYES/aaPanel
#彩色
red(){
echo -e "\033[31m\033[01m$1\033[0m"
}
green(){
echo -e "\033[32m\033[01m$1\033[0m"
}
yellow(){
echo -e "\033[33m\033[01m$1\033[0m"
}
blue(){
echo -e "\033[34m\033[01m$1\033[0m"
}
purple(){
echo -e "\033[35m\033[01m$1\033[0m"
}
function English(){
wget https://raw.githubusercontent.com/AaronYES/aaPanel/main/script/aapanel-en.sh -O aapanel-en.sh && chmod +x aapanel-en.sh && clear && ./aapanel-en.sh
}
function Chinese(){
wget https://ghproxy.com/https://raw.githubusercontent.com/AaronYES/aaPanel/main/script/aapanel-zh.sh -O aapanel-zh.sh && chmod +x aapanel-zh.sh && clear && ./aapanel-zh.sh
}
# 菜单
function start_menu(){
clear
purple " Thank you for using the aaPanel tool."
purple " 请选择您的语言Please select your language"
purple " GitHubhttps://github.com/AaronYES/aapanel"
yellow " ————————————————————————————————————————————————"
green " 1. English"
green " 2. 简体中文"
yellow " ————————————————————————————————————————————————"
green " 0. 退出脚本Exit"
echo
read -p "请输入数字Please key in numbers" menuNumberInput
case "$menuNumberInput" in
1 )
English
;;
2 )
Chinese
;;
0 )
exit 1
;;
* )
clear
red "请输入正确数字!Please enter the correct number!"
start_menu
;;
esac
}
start_menu "first"