mirror of
https://github.com/kvz/bash3boilerplate.git
synced 2025-04-19 05:06:14 +00:00
Cange egrep to grep -E in templater.sh script to comply with ShellCheck
This commit is contained in:
parent
84685a451b
commit
48848fd17c
@ -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
|
||||
|
||||
|
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user