script/clear-target-dir-if-larger-than 🔗
@@ -21,5 +21,6 @@ echo "target directory size: ${current_size_gb}gb. max size: ${max_size_gb}gb"
if [[ ${current_size_gb} -gt ${max_size_gb} ]]; then
echo "clearing target directory"
- rm -rf target/* target/.*
+ shopt -s dotglob
+ rm -rf target/*
fi