Last active
December 19, 2021 15:10
-
-
Save AshineRong/4a2ff90d97ea393a4d928ad5c34360c9 to your computer and use it in GitHub Desktop.
pod setup / pod update master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # 科学代理的配置(可选) | |
| function vm_proxy_on() { | |
| export no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com; | |
| export http_proxy=http://127.0.0.1:1087; | |
| export https_proxy=$http_proxy; | |
| export all_proxy=socks5://127.0.0.1:1087; | |
| curl cip.cc | |
| echo -e "\n" | |
| echo -e "\033[32m已开启代理\033[0m" | |
| } | |
| KROOTPath="$HOME/.cocoapods/repos" | |
| pod_setup(){ | |
| git clone https://github.com/Cocoapods/Specs.git --depth 1 $KROOTPath/master | |
| cd $KROOTPath/master | |
| git fetch --unshallow --verbose | |
| git pull --all | |
| } | |
| update_pod_master(){ | |
| cd $KROOTPath/master | |
| git pull origin master -v | |
| } | |
| # set proxy | |
| vm_proxy_on | |
| # first_setup_pod | |
| #pod_setup | |
| # update_pod | |
| update_pod_master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment