[util] only write $repo.conf if file doesn't exist
This commit is contained in:
parent
876206ccb0
commit
6b5a25be91
1 changed files with 1 additions and 2 deletions
|
@ -342,8 +342,7 @@ load_user_info(){
|
|||
}
|
||||
|
||||
load_run_dir(){
|
||||
write_repo_conf
|
||||
[[ -f $USER_CONFIG/$1.conf ]] || return 1
|
||||
[[ -f $USER_CONFIG/$1.conf ]] || write_repo_conf && return 1
|
||||
[[ -r $USER_CONFIG/$1.conf ]] && source $USER_CONFIG/$1.conf
|
||||
return 0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue