mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2024-12-27 03:18:30 +01:00
14 lines
227 B
Bash
14 lines
227 B
Bash
|
#!/bin/sh
|
||
|
set -e
|
||
|
|
||
|
# Options
|
||
|
WANTED_LIB=$1
|
||
|
EXEC=$2
|
||
|
|
||
|
# Function to extract the first element of a space seperated list
|
||
|
get_first_arg() {
|
||
|
echo $1
|
||
|
}
|
||
|
|
||
|
# Get current path
|
||
|
echo $(get_first_arg $(otool -L $EXEC | grep $WANTED_LIB))
|