summaryrefslogtreecommitdiff
path: root/src/remove.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/remove.sh')
-rw-r--r--src/remove.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/remove.sh b/src/remove.sh
index 7bbb889..fcff458 100644
--- a/src/remove.sh
+++ b/src/remove.sh
@@ -4,6 +4,7 @@ remove () {
local packages=$@
local to_remove="${CACHE_DIR}/toremove"
+ [ -d ${CACHE_DIR} ] || mkdir -p ${CACHE_DIR}
[ -f $to_remove ] && rm $to_remove
touch $to_remove
local real=""