From 3d277807c6766d9117fa433fb2ecda8ddbf1f276 Mon Sep 17 00:00:00 2001 From: YZBruh Date: Sun, 27 Oct 2024 14:04:12 +0300 Subject: [PATCH] pmt: scripts: update header generator script --- build/bash/gen-header | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/build/bash/gen-header b/build/bash/gen-header index 24ade04..48251c7 100755 --- a/build/bash/gen-header +++ b/build/bash/gen-header @@ -14,13 +14,17 @@ # See the License for the specific language governing permissions and # limitations under the License. -[ -z ${NDK_ROOT_DIR} ] \ -&& echo "Please set NDK_ROOT_DIR variable!" \ -&& exit 1 +[ -z ${NDK_ROOT_DIR} ] && \ + { + echo "Please set NDK_ROOT_DIR variable!" + exit 1 + } -[ -z ${NDK_PROJECT_PATH} ] \ -&& echo "Please set NDK_PROJECT_PATH variable!" \ -&& exit 1 +[ -z ${NDK_PROJECT_PATH} ] && \ + { + echo "Please set NDK_PROJECT_PATH variable!" + exit 1 + } CXX_IS="${NDK_ROOT_DIR}/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang++" CXX_VERS=$(${CXX_IS} --version | head -n 1)