install-release.sh 619 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # This file is accessible as https://install.direct/go.sh
  3. # Original source is located at github.com/v2fly/v2ray-core/release/install-release.sh
  4. # If not specify, default meaning of return value:
  5. # 0: Success
  6. # 1: System error
  7. # 2: Application error
  8. # 3: Network error
  9. #######color code########
  10. RED="31m" # Error message
  11. YELLOW="33m" # Warning message
  12. colorEcho(){
  13. echo -e "\033[${1}${@:2}\033[0m" 1>& 2
  14. }
  15. colorEcho ${RED} "WARN: This script will be obsolete soon, please switch to the fhs-install-v2ray project in time."
  16. colorEcho ${YELLOW} "URL: https://github.com/v2fly/fhs-install-v2ray"