fix(ssh): use grep -E instead of egrep (#13380)
This commit is contained in:
parent
ac92582961
commit
caba9ae034
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
_ssh_configfile="$HOME/.ssh/config"
|
||||
if [[ -f "$_ssh_configfile" ]]; then
|
||||
_ssh_hosts=($(
|
||||
egrep '^Host.*' "$_ssh_configfile" |\
|
||||
grep -E '^Host.*' "$_ssh_configfile" |\
|
||||
awk '{for (i=2; i<=NF; i++) print $i}' |\
|
||||
sort |\
|
||||
uniq |\
|
||||
|
|
|
|||
Loading…
Reference in a new issue