From e06e35666eb57c0ac9cd761a72588ac01e1d5639 Mon Sep 17 00:00:00 2001 From: bohung Date: Wed, 24 Aug 2022 15:00:24 +0800 Subject: [PATCH] Fix bug. --- install_nginx.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/install_nginx.sh b/install_nginx.sh index 0d27a63..ffb789e 100644 --- a/install_nginx.sh +++ b/install_nginx.sh @@ -6,6 +6,9 @@ ubuntu_ver="$(lsb_release -rs)" sudo apt install -y make org_pwd="$(pwd)" cpu_cores="$(nproc --all)" +if [[ -z "$cpu_cores" ]]; then + cpu_cores="1" +fi openssl_ver="$(openssl version|xargs| awk '{print $2}')" openssl_dir="" openssl_source_dir=""