更新ghd工具

This commit is contained in:
huty 2023-12-28 15:52:26 +08:00 committed by huty
parent a994bdbde2
commit f97294a6ab

5
ghd
View File

@ -22,7 +22,7 @@ download () {
echo '------------------------------ 正在通过 GitHub Proxy https://ghproxy.com 下载 GitHub 文件,请稍后... ------------------------------' echo '------------------------------ 正在通过 GitHub Proxy https://ghproxy.com 下载 GitHub 文件,请稍后... ------------------------------'
# curl -O https://ghproxy.com/$1 # curl -O https://ghproxy.com/$1
# curl -O https://mirror.ghproxy.com/$1 # curl -O https://mirror.ghproxy.com/$1
curl -O https://github.moeyy.xyz/$1 wget https://github.moeyy.xyz/$1
} }
# 执行方法 # 执行方法
@ -34,6 +34,7 @@ case $1 in
version version
;; ;;
*) *)
download() # download
wget https://github.moeyy.xyz/$1
;; ;;
esac esac