From c59719189244c9434538430965715fd3eecdf68b Mon Sep 17 00:00:00 2001 From: Igor Chubin Date: Sun, 11 Nov 2018 23:17:49 +0100 Subject: [PATCH] cleanup script minor fixes --- share/scripts/clean-cache.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/share/scripts/clean-cache.sh b/share/scripts/clean-cache.sh index 993c6b3..9bea42a 100755 --- a/share/scripts/clean-cache.sh +++ b/share/scripts/clean-cache.sh @@ -1,5 +1,7 @@ #!/bin/bash -mv /exa2/wttr.in.cache /exa2/wttr.in.cache.old -mkdir /exa2/wttr.in.cache/ -rm -rf /exa2/wttr.in.cache.old +CACHEDIR="/wttr.in/cache" + +mv "${CACHEDIR}/wego" "${CACHEDIR}/wego.old" +mkdir "${CACHEDIR}/wego" +rm -rf "${CACHEDIR}/wego.old"