Просмотр исходного кода

added error for readelf not existing

Daniel Gibbs 10 лет назад
Родитель
Сommit
9198dc1ba4
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      functions/command_dev_detect_deps.sh

+ 4 - 2
functions/command_dev_detect_deps.sh

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