From 506b4add094235c8040853c268721ce08b5df60c Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Tue, 5 Nov 2024 17:49:42 +0100 Subject: [PATCH] make build script more robust [ci skip] --- build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index d6ea819..4926441 100644 --- a/build.sh +++ b/build.sh @@ -36,16 +36,16 @@ if [ $? -ne 0 ] || [ ! -d ./target/runtime ]; then exit 1 fi -NATIVE_ACCESS_PACKAGE="org.example" +NATIVE_ACCESS_PACKAGE="no.native.access.needed" _OS=$(uname -s) -if [ ! -z $(echo "$_OS" | grep Linux*) ]; then +if (echo "$_OS" | grep -q "Linux.*") ; then _ARCH=$(uname -m) if [ "$_ARCH" = "x86_64" ]; then NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.linux.amd64" elif [ "$_ARCH" = "aarch64" ]; then NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.linux.aarch64" fi -elif [ ! -z $(echo "$_OS" | grep Darwin*) ]; then +elif (echo "$_OS" | grep -q "Darwin.*"); then NATIVE_ACCESS_PACKAGE="org.cryptomator.jfuse.darwin" fi