From 6a757a93556770f227be9bdd85ce68c44d047777 Mon Sep 17 00:00:00 2001 From: davidovski Date: Tue, 12 Apr 2022 12:16:47 +0100 Subject: added serial downloads and checking for root --- src/remove.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/remove.sh') diff --git a/src/remove.sh b/src/remove.sh index fcff458..56b6a42 100644 --- a/src/remove.sh +++ b/src/remove.sh @@ -49,11 +49,10 @@ remove () { clean () { set -- $(du -sh ${CACHE_DIR}) - - if prompt_question "${LIGHT_RED}Remove ${RED}$1${LIGHT_RED} of cached files?"; then + prompt_question "${LIGHT_RED}Remove ${RED}$1${LIGHT_RED} of cached files?" && { rm -rf ${CACHE_DIR}/* ${QUIET} || printf "${GREEN}Cleared package cache!\n" - else + } || { ${QUIET} || printf "${LIGHT_BLACK}Action cancled by user\n" - fi + } } -- cgit v1.2.1