SDRPlusPlus/macos/search_rpath.sh
2021-11-15 17:28:12 +01:00

14 lines
215 B
Bash

#!/bin/sh
set -e
# Options
RPATH_NAME=$1
EXEC=$2
# Function to keep only the second arg
get_second_arg() {
echo $2
}
# Get current rpath
echo $(get_second_arg $(otool -l $EXEC | grep $RPATH_NAME | grep path))