From a97010739b237d53b57a94f8bbcb0e92d018606f Mon Sep 17 00:00:00 2001 From: guoyangzhen Date: Sat, 14 Mar 2026 17:09:31 +0800 Subject: [PATCH] fix: handle empty dir_size_bytes and remove deprecated docker-compose version --- start_services.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start_services.sh b/start_services.sh index af9f354..f0cf5a8 100755 --- a/start_services.sh +++ b/start_services.sh @@ -20,7 +20,7 @@ max_size_bytes=$((2 * 1024 * 1024 * 1024 * 10)) echo "Mounting $WORK_DIR ($dir_size_bytes bytes) to docker." -if [ "$dir_size_bytes" -gt "$max_size_bytes" ]; then +if [ -n "$dir_size_bytes" ] && [ "$dir_size_bytes" -gt "$max_size_bytes" ]; then echo "Error: WORK_DIR ($WORK_DIR) contains more than 20GB of data ($(du -sh "$WORK_DIR" 2>/dev/null | awk '{print $1}'))." exit 1 fi