Change egrep to grep -E in acceptance test script to comply with ShellCheck

This commit is contained in:
Germain Masse 2017-08-14 18:29:21 +02:00
parent 12ea4dd75f
commit 84685a451b
No known key found for this signature in database
GPG Key ID: 1BD5931FF75F3EAC
2 changed files with 3 additions and 2 deletions

View File

@ -15,7 +15,8 @@ Released: TBA.
- [ ] Upgrade to `lanyon@0.0.55`
- [x] Fix typos in megamount (thanks @gsaponaro)
- [x] Enable color in screen or tmux (@gmasse)
- [x] Enable color in screen or tmux (#92, @gmasse)
- [x] Change `egrep` to `grep -E` in acceptance test script to comply with ShellCheck (#92, @gmasse)
## v2.3.0

View File

@ -148,7 +148,7 @@ while IFS=$'\n' read -r scenario; do
"${curFile}"
fi
if grep -q 'ACCPTST:STDIO_REPLACE_REMOTE_EXEC' "${curFile}"; then
egrep -v 'remote-exec\): [ a-zA-Z]' "${curFile}" > "${__sysTmpDir}/accptst-filtered.txt"
grep -Ev 'remote-exec\): [ a-zA-Z]' "${curFile}" > "${__sysTmpDir}/accptst-filtered.txt"
mv "${__sysTmpDir}/accptst-filtered.txt" "${curFile}"
fi
done