branch master does not exist (#3389)

githubRepo lnbits-legends gets redirected to lnbits

the default branch of lnbits is main
This commit is contained in:
ChuckNorrison 2022-11-04 16:00:37 +01:00 committed by GitHub
parent ed40489e45
commit 30211575c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -348,12 +348,11 @@ if [ "$1" = "repo" ]; then
fi
githubBranch="$3"
if [ ${#githubBranch} -eq 0 ]; then
githubBranch="master"
githubBranch="main"
fi
# check if repo exists
#githubRepo="https://github.com/${githubUser}/lnbits"
githubRepo="https://github.com/${githubUser}/lnbits-legend"
githubRepo="https://github.com/${githubUser}/lnbits"
httpcode=$(curl -s -o /dev/null -w "%{http_code}" ${githubRepo})
if [ "${httpcode}" != "200" ]; then