Don't replace existing repo in build functions

* Addresses issue #149
This commit is contained in:
2Shirt 2020-01-19 11:54:35 -07:00
parent 35d512262d
commit 5189326431
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -345,7 +345,11 @@ function build_all() {
fix_kit_permissions
install_deps
load_settings --edit
update_repo
# Build repo if needed
if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then
update_repo
fi
# Build (full)
copy_live_env
@ -414,7 +418,13 @@ function build_full() {
fix_kit_permissions
install_deps
load_settings --edit
update_repo
# Build repo if needed
if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then
update_repo
fi
# Build Full
copy_live_env
update_live_env
# Rerun script as root to start Archiso build process
@ -435,7 +445,13 @@ function build_minimal() {
fix_kit_permissions
install_deps
load_settings --edit
update_repo
# Build repo if needed
if ! [[ -e "${REPO_DIR}/custom.db.tar.gz" ]]; then
update_repo
fi
# Build Minimal
copy_live_env --minimal
update_live_env --minimal
# Rerun script as root to start Archiso build process