From 5b132bf1244a008ad3ce67688030a7678831f77d Mon Sep 17 00:00:00 2001 From: Matias Linares Date: Fri, 23 Oct 2015 03:14:36 -0300 Subject: Initial commit --- scripts/clear-pacman-cache | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 scripts/clear-pacman-cache (limited to 'scripts/clear-pacman-cache') diff --git a/scripts/clear-pacman-cache b/scripts/clear-pacman-cache new file mode 100755 index 0000000..3891796 --- /dev/null +++ b/scripts/clear-pacman-cache @@ -0,0 +1,9 @@ +#!/bin/sh + +if [[ $UID -eq 0 ]] +then + paccache -r + paccache -ruk0 +else + echo "You need to be root!" +fi -- cgit v1.2.3-70-g09d2