aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/pacman-offline6
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