1 Star 0 Fork 14

outFile/wxappUnpacker

forked from being/wxappUnpacker 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
proxy_set.sh 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
Larack 提交于 2019-02-18 17:46 . 一些优化
#!/usr/bin/env bash
# npm config set proxy http:web-proxy.tencent.com:8080
# npm config set proxy http://127.0.0.1:12759
npm_set_proxy()
{
if [ "-s" == "$1" ]
then
echo "npm config set proxy http://127.0.0.1:12759"
npm config set proxy http://127.0.0.1:12759
echo "npm config set https-proxy http://127.0.0.1:12759"
npm config set https-proxy http://127.0.0.1:12759
elif [ "-d" == "$1" ]
then
echo "npm config delete proxy"
npm config delete proxy
echo "npm config delete https-proxy"
npm config delete https-proxy
fi
return 0;
}
git_set_proxy()
{
if [ "-s" == "$1" ]
then
echo "npm config set proxy http://127.0.0.1:12759"
npm config set proxy http://127.0.0.1:12759
echo "npm config set https-proxy http://127.0.0.1:12759"
npm config set https-proxy http://127.0.0.1:12759
elif [ "-d" == "$1" ]
then
echo "npm config delete proxy"
npm config delete proxy
echo "npm config delete https-proxy"
npm config delete https-proxy
fi
return 0;
}
check_menu()
{
menu=$1
args=$2
param=$3
if [ "-git" == "$1" ]
then git_set_proxy $args $param
elif [ "-npm" == "$1" ]
then
npm_set_proxy $args $param
else npm_set_proxy $1 $2
fi
return 0;
}
# 菜单
check_menu $1 $2 $3
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/outfile/wxappUnpacker.git
git@gitee.com:outfile/wxappUnpacker.git
outfile
wxappUnpacker
wxappUnpacker
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385