mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 00:19:36 +00:00
Improve shebang of bash completion script
Signed-off-by: haruna <w10776e8w@yahoo.co.jp>
This commit is contained in:
@@ -28,7 +28,7 @@ func Run(ctx *cli.Context) error {
|
||||
func genCompletionScript(shell string) (string, error) {
|
||||
var completionScript string
|
||||
if shell == "bash" {
|
||||
completionScript = fmt.Sprintf(`#! /bin/bash
|
||||
completionScript = fmt.Sprintf(`#!/usr/bin/env bash
|
||||
_cli_bash_autocomplete() {
|
||||
if [[ "${COMP_WORDS[0]}" != "source" ]]; then
|
||||
local cur opts base
|
||||
|
||||
Reference in New Issue
Block a user