shellcheck fix

This commit is contained in:
Dummy 2022-12-24 05:51:03 +01:00
parent b30bbf5927
commit c69407345c

View file

@ -3292,15 +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
<<<<<<< HEAD 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\""
=======
LinkSpeed="$(ifconfig $ActiveNetwork | awk '/media/{print}' | sed -E "s/.*\((.*)\).*/\1/")"
fi fi
network="$ActiveNetwork: $ActiveNetworkName@$LinkSpeed" network="$ActiveNetwork: $ActiveNetworkName@$LinkSpeed"
>>>>>>> parent of 3938f431 (shellcheck: double quote)
;; ;;
esac esac
while IFS=' ' read -r n i; do while IFS=' ' read -r n i; do