[kteam-tools,5/6] git-build-kernel: squelch output noise when there is no debian/debian.env

Message ID 1533067677-22831-1-git-send-email-kamal@canonical.com
State New
Headers show
Series
  • git-build-kernel: source pkg features
Related show

Commit Message

Kamal Mostafa July 31, 2018, 8:07 p.m.
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
---
 git-build-kernel/git-build-kernel | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/git-build-kernel/git-build-kernel b/git-build-kernel/git-build-kernel
index 0d5414a..5b17c48 100755
--- a/git-build-kernel/git-build-kernel
+++ b/git-build-kernel/git-build-kernel
@@ -68,7 +68,7 @@  GITSHASHORT="`git log -1 --pretty=%h ${GITBRANCH%%refs/heads/} --`"
 }
 
 ### Get the var "DEBIAN=debian.master" from debian/debian.env
-eval `git show $GITBRANCH:debian/debian.env | grep DEBIAN=`
+eval `git show $GITBRANCH:debian/debian.env 2>&- | grep DEBIAN=`
 [ -z "$DEBIAN" ] && DEBIAN=debian
 
 
@@ -84,7 +84,7 @@  SRCPKG=$(git show $GITBRANCH:$DEBIAN/changelog | sed 's/^\(.*\) (.*/\1/;q')
 CHROOT="$DISTRO"
 CHROOT="${CHROOT%-proposed}"
 [ $do_source_pkg = 1 ] && {
-    eval `git show $GITBRANCH:debian/debian.env | grep SOURCE_PACKAGE_CHROOT=`
+    eval `git show $GITBRANCH:debian/debian.env 2>&- | grep SOURCE_PACKAGE_CHROOT=`
     [ -z "$SOURCE_PACKAGE_CHROOT" ] || CHROOT="$SOURCE_PACKAGE_CHROOT"
 }
 if [ "$CHROOT" = "UNRELEASED" -o -z "$CHROOT" ]