mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-11-10 04:37:37 +01:00
14 lines
174 B
Bash
14 lines
174 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
WANTED_LIB=$1
|
|
NEW_PATH=$2
|
|
EXEC=$3
|
|
|
|
get_first_arg() {
|
|
echo $1
|
|
}
|
|
|
|
CURRENT_RPATH=$(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
|
|
|
|
echo $CURRENT_RPATH |