fix bash regexp in upgrade scripts
Merge pull request #4862 from VojtechVitek/fix_bash_regexp

Merged by openshift-bot