mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-25 15:58:27 +00:00
Fix channel not found test
This commit is contained in:
parent
95fe90b15f
commit
f4a3cfd97d
@ -69,8 +69,8 @@ doUpgradeToolsFromBranch(){
|
|||||||
arkstLatestVersion=`curl -s "https://raw.githubusercontent.com/${arkstGithubRepo}/${arkstChannel}/.version"`
|
arkstLatestVersion=`curl -s "https://raw.githubusercontent.com/${arkstGithubRepo}/${arkstChannel}/.version"`
|
||||||
arkstLatestCommit=`curl -s "https://api.github.com/repos/${arkstGithubRepo}/git/refs/heads/${arkstChannel}" | sed -n 's/^ *"sha": "\(.*\)",.*/\1/p'`
|
arkstLatestCommit=`curl -s "https://api.github.com/repos/${arkstGithubRepo}/git/refs/heads/${arkstChannel}" | sed -n 's/^ *"sha": "\(.*\)",.*/\1/p'`
|
||||||
|
|
||||||
if [ "$arkstLatestVersion" == "Not Found" ]; then
|
if [[ "$arkstLatestVersion" == "404: Not Found" ]]; then
|
||||||
echo "Channel ${arkstChannel} does not exist"
|
echo "Channel '${arkstChannel}' does not exist"
|
||||||
echo
|
echo
|
||||||
echo "Available channels:"
|
echo "Available channels:"
|
||||||
curl -s "https://api.github.com/repos/${arkstGithubRepo}/git/refs/heads" | sed -n 's|^ *"ref": "refs/heads/\(.*\)",|\1|p'
|
curl -s "https://api.github.com/repos/${arkstGithubRepo}/git/refs/heads" | sed -n 's|^ *"ref": "refs/heads/\(.*\)",|\1|p'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user