1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-26 09:25:23 +00:00
v2fly/release/install-release.sh

23 lines
747 B
Bash
Raw Normal View History

2020-10-07 12:04:09 +00:00
#!/usr/bin/env bash
2015-12-03 09:58:31 +00:00
2016-07-27 21:40:47 +00:00
# This file is accessible as https://install.direct/go.sh
# Original source is located at github.com/v2fly/v2ray-core/release/install-release.sh
2016-07-27 21:40:47 +00:00
2018-04-12 08:56:00 +00:00
# If not specify, default meaning of return value:
2018-04-12 13:56:19 +00:00
# 0: Success
2018-04-12 08:56:00 +00:00
# 1: System error
# 2: Application error
# 3: Network error
2016-12-31 13:44:52 +00:00
#######color code########
2018-04-14 07:10:10 +00:00
RED="31m" # Error message
YELLOW="33m" # Warning message
2016-12-31 13:44:52 +00:00
colorEcho(){
echo -e "\033[${1}${@:2}\033[0m" 1>& 2
2016-12-31 13:44:52 +00:00
}
2020-08-15 08:04:57 +00:00
colorEcho ${RED} "ERROR: This script has been DISCARDED, please switch to fhs-install-v2ray project."
2020-08-15 13:55:07 +00:00
colorEcho ${YELLOW} "HOW TO USE: https://github.com/v2fly/fhs-install-v2ray"
colorEcho ${YELLOW} "TO MIGRATE: https://github.com/v2fly/fhs-install-v2ray/wiki/Migrate-from-the-old-script-to-this"
2020-08-15 08:04:57 +00:00
exit 255