summaryrefslogtreecommitdiff
path: root/git-debpush
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-22 02:06:15 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2019-07-22 13:45:47 +0100
commitc692a79177069b52731bba1d3c495e521b6e4449 (patch)
treef2ba87d6b456af34c1744eade79b599913bfdbe1 /git-debpush
parent61ab8270575d967a14485408674aaf01c2c2de06 (diff)
git-debpush: Do not spuriously print -sn/-sk
When looking for -sn or -sk in debian/source/options, we need to not print it to stdout even if grep finds it. So use -q. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Acked-by: Sean Whitton <spwhitton@spwhitton.name>
Diffstat (limited to 'git-debpush')
-rwxr-xr-xgit-debpush4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-debpush b/git-debpush
index 744212a..beb24fb 100755
--- a/git-debpush
+++ b/git-debpush
@@ -246,9 +246,9 @@ case "$format" in
'3.0 (quilt)') upstream=true ;;
'3.0 (native)') upstream=false ;;
'1.0'|'')
- if get_file_from_ref debian/source/options | grep '^-sn *$'; then
+ if get_file_from_ref debian/source/options | grep -q '^-sn *$'; then
upstream=false
- elif get_file_from_ref debian/source/options | grep '^-sk *$'; then
+ elif get_file_from_ref debian/source/options | grep -q '^-sk *$'; then
upstream=true
else
fail 'please see "SOURCE FORMAT 1.0" in git-debpush(1)'