Blame SOURCES/0003-bash-nvme-completion.sh-fixed-error-when-sourced-twi.patch

9fece9
From eac9f9b70081ff2df2e2ea11efb8fc6ec3754f64 Mon Sep 17 00:00:00 2001
9fece9
From: Evgeny Grin <k2k@narod.ru>
9fece9
Date: Fri, 17 Jun 2022 15:00:39 +0300
9fece9
Subject: [PATCH] bash-nvme-completion.sh: fixed error when sourced twice
9fece9
9fece9
One-line "readonly" with assignment produce error if completion file
9fece9
is sourced for the second time (/etc/profile reload, su etc.)
9fece9
---
9fece9
 completions/bash-nvme-completion.sh | 3 ++-
9fece9
 1 file changed, 2 insertions(+), 1 deletion(-)
9fece9
9fece9
diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh
9fece9
index e5d9ff19..7b8a2121 100644
9fece9
--- a/completions/bash-nvme-completion.sh
9fece9
+++ b/completions/bash-nvme-completion.sh
9fece9
@@ -5,7 +5,8 @@
9fece9
 # Kelly Kaoudis kelly.n.kaoudis at intel.com, Aug. 2015
9fece9
 
9fece9
 # Constant to indicate command has no options
9fece9
-readonly NO_OPTS=""
9fece9
+NO_OPTS=""
9fece9
+readonly NO_OPTS
9fece9
 
9fece9
 # Associative array of plugins and associated subcommands
9fece9
 # Order here is same as PLUGIN_OBJS in Makefile
9fece9
-- 
9fece9
2.31.1
9fece9