diff options
| author | vic1707 <[email protected]> | 2023-09-14 10:36:37 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-09-14 10:36:37 +0200 |
| commit | 4ec625a8a1d7cae2be1a9d8a2bba25955a581b70 (patch) | |
| tree | 221120e736b28842cfe5ecf4a6fa177144c4d001 /scripts | |
| parent | 6d2a1dc8f7a33e07d0ab33d13b51a31d30ea4d41 (diff) | |
replace `grep -P` by `grep -E`
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.sh b/scripts/get.sh index 34b6eef68..7440c072d 100755 --- a/scripts/get.sh +++ b/scripts/get.sh @@ -104,7 +104,7 @@ get_host_speed() { if [ `uname` == "Darwin" ]; then ping -c 1 -t 1 $1 2>/dev/null | egrep -o 'time=\d+' | egrep -o "\d+" || echo "65535" else - ping -c 1 -W 1 $1 2>/dev/null | grep -P -o 'time=\d+' | grep -P -o "\d+" || echo "65535" + ping -c 1 -W 1 $1 2>/dev/null | grep -E -o 'time=[0-9]+' | grep -E -o "[0-9]+" || echo "65535" fi } |
