Skip to content

Commit e447a4f

Browse files
committed
Quickly free up space with perl
1 parent ce5b7e5 commit e447a4f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Diff for: src/ci/scripts/free-disk-space.sh

+5-6
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
# # ======
55
# MACROS
66
# ======
7-
7+
set -e
88
fast_rmdir() {
9-
if [[ -d "$1" ]] && [[ -n "$1" ]] && [[ ! "$1" = "/" ]] && [[ ! "$1" = "~" ]]; then
10-
echo "Removing directory: $1"
11-
sudo find "$1" -type f -delete -print | wc -l
12-
sudo rm -rf "$1"
13-
fi
9+
cd "$@"
10+
pwd
11+
ls
12+
perl -e 'unlink for glob "*"'
1413
}
1514

1615
list_installed_dpkg() {

0 commit comments

Comments
 (0)