aboutsummarylogtreecommitdiffstats
path: root/haur-clear-cache
blob: eab472eeb9c79cabee72cbb2693ffd19d75526af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash

if test -f "$HOME/.haur_cache"; then

echo "Clearing cache..."

while IFS= read -r line || [[ -n "$line" ]]; do
    echo "Removing $line"
    rm -rf $HOME/.haur/$line
done < "$HOME/.haur_cache"

rm ~/.haur_cache
else
echo "Nothing to clear"
fi