Set branch to stable if no config file present

This commit is contained in:
aclist authored and GitHub committed 2022-08-05 03:27:29 +09:00
1 parent 1d020f4233
commit c838f90861
1 file changed
+4 -1
+4 -1
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