clean_temporary_aur_files.sh 234 B

1234567891011121314
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. for dir in ~/aur/*
  7. do
  8. cd "$dir" || exit
  9. CURRENT_DIR=$(basename "$PWD")
  10. rm -rf ./pkg/ ./src/ ./*.tar.* ./*.zip* ./*.tgz* ./*.bz* ./"${CURRENT_DIR}"
  11. done