diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/pacman-offline | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/pacman-offline b/bin/pacman-offline index 1573eb8..3c7f3d3 100755 --- a/bin/pacman-offline +++ b/bin/pacman-offline @@ -20,7 +20,11 @@ TIMER=0 while getopts 'cfhrty' opt; do case ${opt} in c) - CLEAN=1 + if pacconf 'CleanMethod' | grep -q 'KeepCurrent'; then + CLEAN=1 + else + echo 'The clean method is not set to keep current. Not cleaning.' >&2 + fi ;; f) rm -f /system-update |