[util] only write $repo.conf if file doesn't exist

This commit is contained in:
udeved 2015-12-06 01:27:09 +01:00
parent 876206ccb0
commit 6b5a25be91

View file

@ -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
}