Fixed pre_build_script in debian package build
Change-Id: Id2cc49498a562efeecdf49bae350799d054f8856
diff --git a/src/com/mirantis/mk/Debian.groovy b/src/com/mirantis/mk/Debian.groovy
index eb9f94f..9cc9789 100644
--- a/src/com/mirantis/mk/Debian.groovy
+++ b/src/com/mirantis/mk/Debian.groovy
@@ -41,7 +41,7 @@
apt-get update && apt-get install -y build-essential devscripts equivs sudo &&
groupadd -g ${jenkinsGID} jenkins &&
useradd -s /bin/bash --uid ${jenkinsUID} --gid ${jenkinsGID} -m jenkins &&
- [ ! -x pre_build_script.sh ] || ./pre_build_script.sh &&
+ [ ! -f pre_build_script.sh ] || bash ./pre_build_script.sh &&
sudo -H -E -u jenkins dpkg-source -x ${file} build-area/${pkg} && cd build-area/${pkg} &&
mk-build-deps -t "apt-get -o Debug::pkgProblemResolver=yes -y" -i debian/control
sudo -H -E -u jenkins debuild --no-lintian -uc -us -b'""")