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