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 4929bd6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/ci/scripts/free-disk-space.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@
# ======

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 "$@"
perl -e 'for(<*>){((stat)[9]<(unlink))}'
}

list_installed_dpkg() {
Expand Down

0 comments on commit 4929bd6

Please sign in to comment.