1
0
Fork 0

strip source line from version

This commit is contained in:
Vincent Kersten 2015-05-11 08:48:27 +02:00 committed by sergeypayu
parent af27547fc1
commit 928237a83b

View file

@ -37,7 +37,8 @@ if [ "x${PHP_VER}" = "x" ]; then
exit 1
fi
PHP_SRC="$(dpkg-query -W -f='${Version}' php5)"
PHP_SRC1="$(dpkg-query -W -f='${Version}' php5)"
PHP_SRC=${PHP_SRC1%*-*}
if [ ! -f "${PHP_SRC}" ]; then
apt-get source php5