From 928237a83be30c4e8823f7fad06ff165eea0647c Mon Sep 17 00:00:00 2001 From: Vincent Kersten Date: Mon, 11 May 2015 08:48:27 +0200 Subject: [PATCH] strip source line from version --- build-debian.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build-debian.sh b/build-debian.sh index be79806..116011e 100755 --- a/build-debian.sh +++ b/build-debian.sh @@ -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