From 8d1465ced9f6eb1eb097f058ee7493eb1f42ee91 Mon Sep 17 00:00:00 2001 From: Martin Winkler Date: Fri, 22 Apr 2022 12:53:41 +0200 Subject: [PATCH] sqn-completion - Suppress error for -pl (if seq has no profiles) --- sqn-completion.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqn-completion.bash b/sqn-completion.bash index dd3dca1..055d7c1 100755 --- a/sqn-completion.bash +++ b/sqn-completion.bash @@ -35,7 +35,7 @@ _sqn_completions() # provide completion for option with parameter -p|--profile) # sequencer.sh provides creation of a profile list with search functionality - read -r -a COMPREPLY <<<"$( "$curCmd" -pl "${cur}" )" + read -r -a COMPREPLY <<<"$( "$curCmd" -pl "${cur}" 2>/dev/null)" ;; *) # Stop after step selection (last argument which is not an option (starting with "-|+")