escaped quotes
This commit is contained in:
parent
3938f43134
commit
501c4f5e1f
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -3292,9 +3292,9 @@ get_network() {
|
||||||
if [[ "$ActiveNetworkName" == "Wi-Fi" ]]; then
|
if [[ "$ActiveNetworkName" == "Wi-Fi" ]]; then
|
||||||
LinkSpeed="$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/maxRate/{print}' | awk '{print $2}' )Mbps"
|
LinkSpeed="$(/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport -I | awk '/maxRate/{print}' | awk '{print $2}' )Mbps"
|
||||||
else
|
else
|
||||||
LinkSpeed="$(ifconfig "$ActiveNetwork" | awk '/media/{print}' | sed -E "s/.*\((.*)\).*/\1/")"
|
LinkSpeed="$(ifconfig \"$ActiveNetwork\" | awk '/media/{print}' | sed -E "s/.*\((.*)\).*/\1/")"
|
||||||
fi
|
fi
|
||||||
network=""$ActiveNetwork": "$ActiveNetworkName"@"$LinkSpeed""
|
network="\"$ActiveNetwork\": \"$ActiveNetworkName\"@\"$LinkSpeed\""
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
while IFS=' ' read -r n i; do
|
while IFS=' ' read -r n i; do
|
||||||
|
|
Loading…
Reference in a new issue