From 7958cf15b73e94ea7b80b841f4d69c923c94b70b Mon Sep 17 00:00:00 2001 From: Sarah Gilmore Date: Wed, 29 May 2024 09:34:59 -0400 Subject: [PATCH] Use pushd/popd --- dev/tasks/matlab/rename_macos_dynamic_libraries.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/tasks/matlab/rename_macos_dynamic_libraries.sh b/dev/tasks/matlab/rename_macos_dynamic_libraries.sh index d1ea3b105cbb3..bb3eb531843d5 100755 --- a/dev/tasks/matlab/rename_macos_dynamic_libraries.sh +++ b/dev/tasks/matlab/rename_macos_dynamic_libraries.sh @@ -109,7 +109,7 @@ else exit 1 fi -ORIG_DIR=$(pwd) +pushd ${DYLIB_DIR} cd ${DYLIB_DIR} @@ -161,4 +161,4 @@ install_name_tool -change @rpath/${LIBMEXCLASS_DYLIB} @rpath/${LIBMEXCLASS_ARCH_ # Change install name of dependent shared library libarrowproxy.dylib to libarrowproxy_(arm64|x64).dylib in gateway.(mexmaca64|mexmaci64) install_name_tool -change @rpath/${LIBARROWPROXY_DYLIB} @rpath/${LIBARROWPROXY_ARCH_DYLIB} ${MEX_GATEWAY} -cd ${ORIG_DIR} \ No newline at end of file +popd \ No newline at end of file