diff --git a/arch/updatewine_arch.sh b/arch/updatewine_arch.sh index 4a58f5a..bb78627 100755 --- a/arch/updatewine_arch.sh +++ b/arch/updatewine_arch.sh @@ -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() { - 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) @@ -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 checkFiles