From 107ff5c9c4696d4ef8fb3b1718bd945a10868736 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Mon, 8 Jan 2024 19:45:31 +0300 Subject: [PATCH] bless tidy Signed-off-by: onur-ozkan --- src/etc/completions/x.py.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/etc/completions/x.py.sh b/src/etc/completions/x.py.sh index f739f46b88bb2..37b7fe1e082bc 100644 --- a/src/etc/completions/x.py.sh +++ b/src/etc/completions/x.py.sh @@ -1761,4 +1761,8 @@ _x.py() { esac } -complete -F _x.py -o nosort -o bashdefault -o default x.py +if [[ "${BASH_VERSINFO[0]}" -eq 4 && "${BASH_VERSINFO[1]}" -ge 4 || "${BASH_VERSINFO[0]}" -gt 4 ]]; then + complete -F _x.py -o nosort -o bashdefault -o default x.py +else + complete -F _x.py -o bashdefault -o default x.py +fi