Browse Source

[Arch] Use unambiguous cleanlist array

master
Pekka Helenius 2 years ago
parent
commit
67a224e447
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      arch/updatewine_arch.sh

+ 4
- 8
arch/updatewine_arch.sh View File

@ -101,8 +101,11 @@ function INFO_SEP() { printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - ;
########################################################### ###########################################################
# TODO Shall we remove git folders or keep them?
dxvk_wine_cleanlist=('*.patch' '*.diff' 'pkg' 'src' '*-patches' '*.tar.xz' '*.sig')
function cleanUp() { function cleanUp() {
rm -rf ${ARCH_BUILDROOT}/*/{pkg,src,*.tar.xz,*.patch,*.diff,*.sig}
rm -rf ${ARCH_BUILDROOT}/*/{$(echo "${dxvk_wine_cleanlist[@]}" | tr ' ' ',')}
} }
# Allow interruption of the script at any time (Ctrl + C) # Allow interruption of the script at any time (Ctrl + C)
@ -521,13 +524,6 @@ function updatePOL() {
########################################################## ##########################################################
# Clean these temporary folders & files
# TODO Shall we remove git folders or keep them?
dxvk_wine_cleanlist=('*.patch' '*.diff' 'pkg' 'src' '*-patches' '*.tar.xz' '*.sig')
##########################################################
# Validate all buildtime files # Validate all buildtime files
checkFiles checkFiles


Loading…
Cancel
Save