Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Don't error when checking target dir size if there is no target dir
Max Brunsfeld68260a48bb63
diff --git a/script/clear-target-dir-if-larger-than b/script/clear-target-dir-if-larger-thanindex 59c07f77f71..d23c111ec18 100755--- a/script/clear-target-dir-if-larger-than+++ b/script/clear-target-dir-if-larger-than@@ -7,6 +7,11 @@ if [[ $# < 1 ]]; thenexit 1fi+if ! [[ -d target ]]; then+ echo "target directory does not exist yet"+ exit 0+fi+max_size_gb=$1current_size=$(du -s target | cut -f1)