sqn-completion - Suppress error for -pl (if seq has no profiles)

This commit is contained in:
2022-04-22 12:53:41 +02:00
parent 25962beb02
commit 8d1465ced9

View File

@@ -35,7 +35,7 @@ _sqn_completions()
# provide completion for option with parameter # provide completion for option with parameter
-p|--profile) -p|--profile)
# sequencer.sh provides creation of a profile list with search functionality # 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 "-|+") # Stop after step selection (last argument which is not an option (starting with "-|+")