mirror of
https://github.com/hykilpikonna/hyfetch.git
synced 2026-04-19 07:07:44 -05:00
escaped quotes
This commit is contained in:
parent
3938f43134
commit
501c4f5e1f
4
neofetch
4
neofetch
|
|
@ -3292,9 +3292,9 @@ get_network() {
|
|||
if [[ "$ActiveNetworkName" == "Wi-Fi" ]]; then
|
||||
LinkSpeed="$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/maxRate/{print}' | awk '{print $2}' )Mbps"
|
||||
else
|
||||
LinkSpeed="$(ifconfig "$ActiveNetwork" | awk '/media/{print}' | sed -E "s/.*\((.*)\).*/\1/")"
|
||||
LinkSpeed="$(ifconfig \"$ActiveNetwork\" | awk '/media/{print}' | sed -E "s/.*\((.*)\).*/\1/")"
|
||||
fi
|
||||
network=""$ActiveNetwork": "$ActiveNetworkName"@"$LinkSpeed""
|
||||
network="\"$ActiveNetwork\": \"$ActiveNetworkName\"@\"$LinkSpeed\""
|
||||
;;
|
||||
esac
|
||||
while IFS=' ' read -r n i; do
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user