Added check for rpath in MacOS dotapp script

This commit is contained in:
Alexandre 2021-11-16 12:19:50 -06:00
parent 6f8fc86236
commit 66dcb5eb79

View File

@ -13,4 +13,6 @@ get_second_arg() {
# Get current rpath
WANTED_RPATH=$(get_second_arg $(otool -l $EXEC | grep $RPATH_NAME | grep path))
install_name_tool -delete_rpath $WANTED_RPATH $EXEC
if [ ! -z "$WANTED_RPATH" ]; then
install_name_tool -delete_rpath $WANTED_RPATH $EXEC
fi