diff options
author | davidovski <david@davidovski.xyz> | 2022-04-12 12:16:47 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-04-12 12:16:47 +0100 |
commit | 6a757a93556770f227be9bdd85ce68c44d047777 (patch) | |
tree | 65aca039dd164fa6ea85e3f2cc63d3fb30b9014e /src/remove.sh | |
parent | 30be8ddd88f617f21b874e623f2da8643fe2699c (diff) |
added serial downloads and checking for rootv1.2.0
Diffstat (limited to 'src/remove.sh')
-rw-r--r-- | src/remove.sh | 7 |
1 files changed, 3 insertions, 4 deletions
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 + } } |