Browse Source

[Arch] Update clean-up logic

master
Pekka Helenius 2 years ago
parent
commit
f766f2a608
1 changed files with 3 additions and 17 deletions
  1. +3
    -17
      arch/updatewine_arch.sh

+ 3
- 17
arch/updatewine_arch.sh View File

@ -101,18 +101,12 @@ function INFO_SEP() { printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - ;
########################################################### ###########################################################
# If the script is interrupted (Ctrl+C/SIGINT), do the following
function Arch_intCleanup() {
rm -rf ${ARCH_BUILDROOT}/{0-wine-staging-git/{wine-patches,*.tar.xz,*.sig},0-dxvk-git/{dxvk-git,*.tar.xz,*.sig}}
exit 0
function cleanUp() {
rm -rf ${ARCH_BUILDROOT}/*/{pkg,src,*.tar.xz,*.patch,*.diff,*.sig}
} }
# Allow interruption of the script at any time (Ctrl + C) # Allow interruption of the script at any time (Ctrl + C)
trap "Arch_intCleanup" INT
# Error event
#trap "Arch_intCleanup" ERR
trap "cleanUp" SIGINT SIGTERM SIGQUIT
########################################################### ###########################################################
@ -382,14 +376,6 @@ function check_gitOverride_wine() {
########################################################### ###########################################################
# Remove any existing pkg,src or tar.xz packages left by previous pacman commands
function cleanUp() {
rm -rf ${ARCH_BUILDROOT}/*/{pkg,src,*.tar.xz,*.patch,*.diff,*.sig}
}
###########################################################
# Build & install package # Build & install package
function build_pkg() { function build_pkg() {


Loading…
Cancel
Save