From 5580365539aedf8d65b5eddbe2640f09a27fd349 Mon Sep 17 00:00:00 2001 From: Alexandre Vannobel Date: Mon, 13 May 2019 09:27:40 -0400 Subject: [PATCH] Corrected the folder in which to copy the libs, and added a chmod +x for the debug lib --- build.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/build.sh b/build.sh index a965fb89..294670dd 100755 --- a/build.sh +++ b/build.sh @@ -23,7 +23,7 @@ if [ "${RESULT}" -ne 0 ]; then exit $? fi -cp -R kortex_api/cpp/linux_gcc_x86-64/lib/ src/ros_kortex/kortex_api/lib/ +cp -R kortex_api/cpp/linux_gcc_x86-64/lib/ src/ros_kortex/kortex_api/ RESULT=$? if [ "${RESULT}" -ne 0 ]; then echo "ERROR while copying the kortex api library. code = ${RESULT}" @@ -33,7 +33,14 @@ fi chmod +x src/ros_kortex/kortex_api/lib/release/libKortexApi.a RESULT=$? if [ "${RESULT}" -ne 0 ]; then - echo "ERROR while executing chmod +x on the kortex api library. code = ${RESULT}" + echo "ERROR while executing chmod +x on the kortex api release library. code = ${RESULT}" + exit $? +fi + +chmod +x src/ros_kortex/kortex_api/lib/debug/libKortexApi.a +RESULT=$? +if [ "${RESULT}" -ne 0 ]; then + echo "ERROR while executing chmod +x on the kortex api debug library. code = ${RESULT}" exit $? fi