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

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