2015-12-03 04:58:31 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2016-07-27 17:40:47 -04:00
|
|
|
# This file is accessible as https://install.direct/go.sh
|
2020-06-22 18:11:05 -04:00
|
|
|
# Original source is located at github.com/v2fly/v2ray-core/release/install-release.sh
|
2016-07-27 17:40:47 -04:00
|
|
|
|
2018-04-12 04:56:00 -04:00
|
|
|
# If not specify, default meaning of return value:
|
2018-04-12 09:56:19 -04:00
|
|
|
# 0: Success
|
2018-04-12 04:56:00 -04:00
|
|
|
# 1: System error
|
|
|
|
# 2: Application error
|
|
|
|
# 3: Network error
|
|
|
|
|
2016-12-31 08:44:52 -05:00
|
|
|
#######color code########
|
2018-04-14 03:10:10 -04:00
|
|
|
RED="31m" # Error message
|
|
|
|
YELLOW="33m" # Warning message
|
2016-12-31 08:44:52 -05:00
|
|
|
colorEcho(){
|
2020-01-07 10:06:25 -05:00
|
|
|
echo -e "\033[${1}${@:2}\033[0m" 1>& 2
|
2016-12-31 08:44:52 -05:00
|
|
|
}
|
|
|
|
|
2020-08-14 22:40:30 -04:00
|
|
|
colorEcho ${RED} "ERROR: This script has been deprecated, please switch to the fhs-install-v2ray project."
|
2020-08-08 18:43:24 -04:00
|
|
|
colorEcho ${YELLOW} "URL: https://github.com/v2fly/fhs-install-v2ray"
|