diff --git a/release/content.sh b/release/content.sh index b8401b8..fdd33a1 100755 --- a/release/content.sh +++ b/release/content.sh @@ -16,19 +16,19 @@ SCRIPT_DIR=$(dirname $(realpath ${BASH_SOURCE[0]})) # ============================================================================== stage "Finalizing Content" -if [[ -z "$(ls -A ${PKGS_DIR})" ]]; then - info "Custom Content Not Found" " '${PKGS_DIR}' is empty." - exit 0 -fi - log_line "Building package list:" # If no content providers fetched packages, this will act as 'touch' cat ${WORK_DIR}/${PKG_LIST_TMP}* > ${WORK_DIR}/${PKG_LIST_FILE} 2>/dev/null || true log_line "OK!" 1 section "Creating Content Repository" +if [[ -z "$(ls -A ${PKGS_DIR})" ]]; then + info "Custom Content Not Found" " '${PKGS_DIR}' is empty." + exit 0 +fi + pushd ${PKGS_DIR} > /dev/null -log_line -createrepo_c ${PKGS_DIR} # Output too verbose +log_line # Output too verbose +createrepo_c ${PKGS_DIR} # TODO: log create_repo output and only print its result log_line popd > /dev/null