Update compile.sh

This commit is contained in:
__Rylex__
2024-02-01 19:24:52 -08:00
committed by GitHub
parent 9835e5c820
commit afb32fdc4c

View File

@@ -32,6 +32,7 @@ if [ $MAX_THREAD -lt 2 ]; then
fi fi
if [ $COMPILE_JOBS -lt 1 ]; then if [ $COMPILE_JOBS -lt 1 ]; then
echo "COMPILE_JOBS must be greater than or equal to 1" && echo "COMPILE_JOBS must be greater than or equal to 1" &&
exit 1
fi fi
if ! [[ $MAX_MEMORY =~ ^[0-9]+([kmgt]b)?$ ]]; then if ! [[ $MAX_MEMORY =~ ^[0-9]+([kmgt]b)?$ ]]; then
echo "MAX_MEMORY valid suffixes are kb, mb, gb, tb, none (bytes)" && echo "MAX_MEMORY valid suffixes are kb, mb, gb, tb, none (bytes)" &&