Skip to content

Commit d15d5db

Browse files
authored
Merge pull request #2 from iguanito/fixing_internationalization_nmcli
fix internationalization issue while calling nmcli and then grepping the yes word
2 parents bfcd47a + a0d3d44 commit d15d5db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

network-tester.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ echo "Driver: $DRIVER" >> "$IW_LOG"
7373
echo "---------------------------" >> "$IW_LOG"
7474

7575
# Get the active WiFi interface name
76-
interface=$(nmcli -t -f active,device d wifi list | grep '^yes' | cut -d':' -f2)
76+
interface=$(LC_ALL=en_US.utf8 nmcli -t -f active,device d wifi list | grep '^yes' | cut -d':' -f2)
7777
echo -e "\n \033[1;33mInterface:\033[0m $interface"
7878

7979
echo "Monitoring WiFi on interface $interface for $MONITOR_DURATION seconds. Logs are being saved to $IW_LOG and $PING_LOG."

0 commit comments

Comments
 (0)