Skip to content
Snippets Groups Projects
Commit 5bf09e1a authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: correct grep of CLI options using quantifiers and extended regex mode

parent 28fe956a
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ _validate_workflow_completion() { ...@@ -4,7 +4,7 @@ _validate_workflow_completion() {
COMPREPLY=() COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}" prev="${COMP_WORDS[COMP_CWORD-1]}"
opts=$(cat $SELF | grep "^#hh\s-., --[a-z]" | sed -e "s/^#hh.*\(-.\), \(--[a-z-]*\).*/\1 \2/g") opts=$(grep -rE "^#hh\s+-., --[a-z]+" "${SELF}" | sed -e "s/^#hh.*\(-.\), \(--[a-z-]*\).*/\1 \2/g")
2>&1 echo "OPTS:$opts" 2>&1 echo "OPTS:$opts"
case "$prev" in case "$prev" in
--pipe) --pipe)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment