Add flag to clean yay's cache in clean-cache script

This commit is contained in:
2021-10-19 18:33:42 +03:00
parent 0e6e931457
commit 13656ec573

View File

@@ -7,6 +7,7 @@ usage() {
echo echo
echo " --npm cleans npm cache by running 'npm cache clean -f'" echo " --npm cleans npm cache by running 'npm cache clean -f'"
echo " --yarn cleans yarn cache by running 'yarn cache clean'" echo " --yarn cleans yarn cache by running 'yarn cache clean'"
echo " --yay clean yay cache by simply deleting ~/.cache/yay content"
} }
if [ $# -eq 0 ] ; then if [ $# -eq 0 ] ; then
@@ -22,4 +23,6 @@ if [[ "${args[@]}" =~ "--yarn" ]] ; then
yarn cache clean >> /dev/null 2>> /dev/null yarn cache clean >> /dev/null 2>> /dev/null
fi fi
# TODO: Clean yay's AUR cache if [[ "${args[@]}" =~ "--yay" ]] ; then
rm -rf ~/.cache/yay/*
fi