From dc708d5bed57af5b7f7968ab1845519d8458fc7f Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sat, 13 Mar 2021 18:12:56 +0100 Subject: tools: don't use a shebang for bash completion They are not expected to be executed. This seems a silly path, but some people bother filing bug reports about it, so if you are OK with it, it could be "fixed". --- tools/completion/gobgp-completion.bash | 2 +- tools/completion/gobgp-dynamic-completion.bash | 4 ++-- tools/completion/gobgp-static-completion.bash | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/completion/gobgp-completion.bash b/tools/completion/gobgp-completion.bash index a45e1fed..4c8494e2 100644 --- a/tools/completion/gobgp-completion.bash +++ b/tools/completion/gobgp-completion.bash @@ -1,4 +1,4 @@ -#!/bin/bash +# bash completion for gobgp -*- shell-script -*- . `dirname $BASH_SOURCE`/gobgp-static-completion.bash . `dirname $BASH_SOURCE`/gobgp-dynamic-completion.bash diff --git a/tools/completion/gobgp-dynamic-completion.bash b/tools/completion/gobgp-dynamic-completion.bash index f6a93dda..66b964cf 100644 --- a/tools/completion/gobgp-dynamic-completion.bash +++ b/tools/completion/gobgp-dynamic-completion.bash @@ -1,4 +1,4 @@ -#!/bin/bash +# bash completion for gobgp -*- shell-script -*- __gobgp_q() { @@ -1698,4 +1698,4 @@ _gobgp_policy_statement_sname() must_have_one_flag=() must_have_one_noun=() -} \ No newline at end of file +} diff --git a/tools/completion/gobgp-static-completion.bash b/tools/completion/gobgp-static-completion.bash index 0d658af8..76597c65 100644 --- a/tools/completion/gobgp-static-completion.bash +++ b/tools/completion/gobgp-static-completion.bash @@ -1,4 +1,4 @@ -#!/bin/bash +# bash completion for gobgp -*- shell-script -*- _gobgp_global_rib_add() { @@ -2064,4 +2064,4 @@ _gobgp() must_have_one_flag=() must_have_one_noun=() -} \ No newline at end of file +} -- cgit v1.2.3