From f00c21de214781d0cb0ad30eb26b080286c723c7 Mon Sep 17 00:00:00 2001 From: Takashi Mori Date: Fri, 29 Dec 2023 08:40:51 +0900 Subject: [PATCH] bug fixed for macos --- activate_app.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/activate_app.bash b/activate_app.bash index 23e5fe2..0c447bc 100644 --- a/activate_app.bash +++ b/activate_app.bash @@ -40,7 +40,8 @@ then elif [ ${OS_TYPE} = "Mac" ] then cd ${APP_DIRPATH} - APP_NAME=`find ./Contents/MacOS -type f` + BASE_NAME=`basename ${APP_DIRPATH}` + APP_NAME=`find ./${BASE_NAME}.app/Contents/MacOS -type f` ./${APP_NAME} else echo "ERROR: not supported os type: ${OS_TYPE}"