1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2025-04-05 03:53:01 +02:00

Set branch to stable if no config file present

This commit is contained in:
aclist 2022-08-05 03:27:29 +09:00 committed by GitHub
parent 1d020f4233
commit c838f90861
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -665,7 +665,10 @@ check_branch(){
upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
}
check_version(){
source $config_file
if [[ ! -f $config_file ]]; then : else source $config_file; fi
if [[ -z $branch ]]; then
branch="stable"
fi
check_branch
if [[ $version == $upstream ]]; then
check_unmerged