Useful CLI tools (bash) for Arch Linux administration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
384 B

#!/bin/bash
################################
# Remove build-time files after program compilation on Arch Linux
#
if [ ! -e ./PKGBUILD ] && [ ! -d ./{src,pkg} ]; then #We check whether PKGBUILD file and src,pkg directories exist. If no, then...
echo -e "Nothing to be removed\n"
exit
else
rm -Rf ./{src,pkg,packages,community,*tar.xz} #tar.xz file may or may not exist
fi