mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
Set branch to stable if no config file present
This commit is contained in:
1 parent
1d020f4233
commit
c838f90861
1 file changed
+4
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user