Add patch to remove useless #! from bash completions

This commit is contained in:
Simon McVittie 2017-08-29 18:12:01 +01:00
parent 68a66dd7e3
commit d4496b9005
3 changed files with 24 additions and 0 deletions

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ ostree (2017.10-1) UNRELEASED; urgency=medium
when splitting -arch/-indep builds.
* Add patches to make the tests pass again when /var/tmp is on tmpfs,
which does not support user xattrs
* Add patch to remove useless #! from bash completions
-- Simon McVittie <smcv@debian.org> Tue, 29 Aug 2017 16:08:09 +0100

View File

@ -0,0 +1,22 @@
From: Simon McVittie <smcv@collabora.com>
Date: Tue, 29 Aug 2017 17:05:16 +0100
Subject: Remove shebang from bash completions
bash completions are to be sourced. It makes little sense to
execute them.
Signed-off-by: Simon McVittie <smcv@debian.org>
---
bash/ostree | 2 --
1 file changed, 2 deletions(-)
diff --git a/bash/ostree b/bash/ostree
index f4305f6..da8b9af 100644
--- a/bash/ostree
+++ b/bash/ostree
@@ -1,5 +1,3 @@
-#!/bin/bash
-#
# bash completion file for ostree commands
#
# This script provides completion of:

View File

@ -3,3 +3,4 @@ test-pull-bareuser.sh-This-test-uses-bare-user-hence-need.patch
libtest-Allow-skipping-single-checks-without-user-xattrs.patch
basic-test-Skip-explicit-uses-of-bare-user-if-no-user-xat.patch
test-basic-user-only-Skip-final-step-if-no-user-xattrs.patch
Remove-shebang-from-bash-completions.patch