f0ca12 scripts/CKC: fixed iterating over an array + skip unrecognized options

Authored and Committed by Miroslav Franc 2 years ago
    scripts/CKC: fixed iterating over an array + skip unrecognized options
    
    - 182c5295bfe1 introduced option parsing which unfotunately broke
      iterating over the terms since it changed the type of KBC_CHECK_TERMS
      from a string (of space separated tokens) to a proper bash array
      which requires a different method of iteration.
    
    - With different version of the script flying around it's better to
      skip unrecognized options so that they are not mistaken for terms to
      search for, one can always force them after '--'.
    
    Signed-off-by: Miroslav Franc <mfranc@suse.cz>
    
        
file modified
+5 -1