change --delete-before => --delete

This commit is contained in:
LinuxSquare 2024-04-20 20:47:41 +02:00
parent 467542e3a1
commit 70a82fc0b0

View file

@ -23,7 +23,6 @@ readonly APKBUILD_GIT_REPO_BASE="https://git.noveria.org/APKBUILD"
# Miscellaneous functions # Miscellaneous functions
## ##
function init_local() { function init_local() {
if [[ ! -d "${BUILD_DIR}" || ! -d "${REPO_DIR}" || ! -d "${KEYS_DIR}" || ! -f "${PKG_LIST_FILE}" ]]; then if [[ ! -d "${BUILD_DIR}" || ! -d "${REPO_DIR}" || ! -d "${KEYS_DIR}" || ! -f "${PKG_LIST_FILE}" ]]; then
message_blue_double_colon "Initializing local directories" message_blue_double_colon "Initializing local directories"
@ -206,7 +205,7 @@ function build_pkgs() {
message_blue_single_arrow "Copying package to repo" message_blue_single_arrow "Copying package to repo"
local VERSION_ID=$(container_run "grep VERSION_ID= /etc/os-release") local VERSION_ID=$(container_run "grep VERSION_ID= /etc/os-release")
find $REPO_DIR/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64 -name $1*.apk -exec rm -f {} \; find $REPO_DIR/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64 -name $1*.apk -exec rm -f {} \;
rsync -a --delete-before --progress "${BUILD_DIR}/$pkg"/*.apk "${REPO_DIR}/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64" rsync -a --delete --progress "${BUILD_DIR}/$pkg"/*.apk "${REPO_DIR}/v$(echo $VERSION_ID | cut -d= -f2 | rev | cut -d. -f2- | rev)/noveria/x86_64"
rm -f "${BUILD_DIR}/$pkg"/*.apk rm -f "${BUILD_DIR}/$pkg"/*.apk
refresh_repo refresh_repo
sign_repo sign_repo