Created
October 18, 2019 11:57
-
-
Save ElfSundae/b9fc96fc4fa1bcc6602962393c8f8c46 to your computer and use it in GitHub Desktop.
Check TXLiteAVSDK_UGC Pod source
This file contains 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/sh | |
# | |
# Check TXLiteAVSDK_UGC pod source | |
# | |
# $ pod spec which TXLiteAVSDK_UGC | |
# ~/.cocoapods/repos/trunk/Specs/a/3/e/TXLiteAVSDK_UGC/6.7.7754/TXLiteAVSDK_UGC.podspec.json | |
## Existing version from CocoaPods Specs: | |
# 4.2.3427 Free | |
# 4.4.3774 Free | |
# 4.5.4018 Licensed | |
# Result: | |
# https://liteavsdk-1252463788.cosgz.myqcloud.com/4.2/TXLiteAVSDK_UGC_Rename_iOS_4.2.3427.zip | |
# https://liteavsdk-1252463788.cosgz.myqcloud.com/4.3/TXLiteAVSDK_UGC_Rename_iOS_4.3.3609.zip | |
# https://liteavsdk-1252463788.cosgz.myqcloud.com/4.4/TXLiteAVSDK_UGC_Rename_iOS_4.4.3774.zip | |
# https://liteavsdk-1252463788.cosgz.myqcloud.com/4.5/TXLiteAVSDK_UGC_Rename_iOS_4.5.4018.zip | |
# Usage: _url 4.2 3774 | |
_url() | |
{ | |
echo "https://liteavsdk-1252463788.cosgz.myqcloud.com/$1/TXLiteAVSDK_UGC_Rename_iOS_$1.$2.zip" | |
} | |
# Usage: _check 4.2 3774 | |
_check() | |
{ | |
url=`_url $@` | |
# https://superuser.com/a/442395/227501 | |
code=`curl -s -o /dev/null -I -w "%{http_code}" "$url"` | |
if [[ $? != 0 ]]; then | |
echo "*** Error ***" | |
exit 1 | |
fi | |
if [[ $code == 200 ]]; then | |
echo "$url" | |
fi | |
} | |
cd "$(dirname $0)" | |
for mainVer in 4.2 4.3 4.4 4.5; do | |
for patchVer in {3427..4018}; do | |
_check $mainVer $patchVer | |
sleep .1 | |
done | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Moved to https://github.com/ElfSundae/TXLiteAVSDK_UGC