Cange egrep to grep -E in templater.sh script to comply with ShellCheck

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

View File

@ -16,7 +16,7 @@ Released: TBA.
- [ ] Upgrade to `lanyon@0.0.55`
- [x] Fix typos in megamount (thanks @gsaponaro)
- [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)
- [x] Change `egrep` to `grep -E` in test and lib scripts to comply with ShellCheck (#92, @gmasse)
## v2.3.0

View File

@ -40,7 +40,7 @@ function templater() {
fi
cp -f "${templateSrc}" "${templateDst}"
for var in $(env |awk -F= '{print $1}' |egrep '^[A-Z0-9_]+$'); do
for var in $(env |awk -F= '{print $1}' |grep -E '^[A-Z0-9_]+$'); do
sed -i.bak -e "s#\${${var}}#${!var}#g" "${templateDst}"
# this .bak dance is done for BSD/GNU portability: http://stackoverflow.com/a/22084103/151666
rm -f "${templateDst}.bak"