escaped quotes

This commit is contained in:
Dummy 2022-12-24 05:30:03 +01:00
parent 3938f43134
commit 501c4f5e1f

View file

@ -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