Update compile.sh
This commit is contained in:
@@ -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" &&
|
||||||
|
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)" &&
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user