Browse Source

added error for readelf not existing

pull/668/merge
Daniel Gibbs 9 years ago
parent
commit
9198dc1ba4
  1. 6
      functions/command_dev_detect_deps.sh

6
functions/command_dev_detect_deps.sh

@ -35,10 +35,12 @@ elif [ "${executable}" == "./ts3server_startscript.sh" ]; then
executable=ts3server_linux_amd64 executable=ts3server_linux_amd64
fi fi
if [ -n "$(command -v eu-readelf)" ]; then if [ "$(command -v eu-readelf)" ]; then
readelf=eu-readelf readelf=eu-readelf
else elif [ "$(command -v readelf)" ];
readelf=readelf readelf=readelf
else
echo "readelf/eu-readelf not installed"
fi fi
${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${rootdir}/.depdetect_readelf" ${readelf} -d ${executable} |grep NEEDED|awk '{ print $5 }'|sed 's/\[//g'|sed 's/\]//g' > "${rootdir}/.depdetect_readelf"

Loading…
Cancel
Save