Skip to content

Commit

Permalink
Quickly free up space with perl
Browse files Browse the repository at this point in the history
  • Loading branch information
whiteio committed Dec 12, 2024
1 parent ce5b7e5 commit e447a4f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/ci/scripts/free-disk-space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
# # ======
# MACROS
# ======

set -e
fast_rmdir() {
if [[ -d "$1" ]] && [[ -n "$1" ]] && [[ ! "$1" = "/" ]] && [[ ! "$1" = "~" ]]; then
echo "Removing directory: $1"
sudo find "$1" -type f -delete -print | wc -l
sudo rm -rf "$1"
fi
cd "$@"
pwd
ls
perl -e 'unlink for glob "*"'
}

list_installed_dpkg() {
Expand Down

0 comments on commit e447a4f

Please sign in to comment.