From a7a713c0e188a08f23ac5d856ce3c3df7e64d37d Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Fri, 23 Sep 2022 11:22:28 -0400 Subject: [PATCH] script fix --- linux_macos_install_scripts/install_application.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linux_macos_install_scripts/install_application.sh b/linux_macos_install_scripts/install_application.sh index b0f5781833..6a7a7cd0cb 100644 --- a/linux_macos_install_scripts/install_application.sh +++ b/linux_macos_install_scripts/install_application.sh @@ -82,7 +82,7 @@ fi echo "Setting up application at $APPLICATION_EXTRACTED_PATH..." # find unix_setup.sh in least nested path (https://stackoverflow.com/a/40039568/2375948) -UNIX_SETUP_PATH=`find $APPLICATION_EXTRACTED_PATH -name 'unix_setup.sh' -printf "%d %p\n"| sort -n | perl -pe 's/^\d+\s//;' | head -n1 | xargs -I{} dirname {}` +UNIX_SETUP_PATH=`find $APPLICATION_EXTRACTED_PATH -maxdepth 2 -name 'unix_setup.sh' | head -n1 | xargs -I{} dirname {}` pushd $UNIX_SETUP_PATH && chown -R $(whoami) . &&