From 67a224e447d3c61fa3b3354d8ec40e1be22cf7e3 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Fri, 28 Oct 2022 21:46:17 +0300 Subject: [PATCH] [Arch] Use unambiguous cleanlist array --- arch/updatewine_arch.sh | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) 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