mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
Simple Fix 2
This commit is contained in:
parent
bfe9ce3f0e
commit
9a9c6901de
|
@ -102,7 +102,7 @@ prompt_for_network() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display networks with numbers
|
# Display networks with numbers
|
||||||
IFS=$'\n' read -rd '' -a network_list <<<"$networks"
|
IFS=$'\n' read -r -a network_list <<<"$networks"
|
||||||
for i in "${!network_list[@]}"; do
|
for i in "${!network_list[@]}"; do
|
||||||
ssid=$(echo "${network_list[$i]}" | awk -F: '{print $1}')
|
ssid=$(echo "${network_list[$i]}" | awk -F: '{print $1}')
|
||||||
echo "$((i+1)). SSID: $ssid"
|
echo "$((i+1)). SSID: $ssid"
|
||||||
|
@ -166,4 +166,4 @@ remove_network() {
|
||||||
}
|
}
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
main_menu
|
main_menu
|
||||||
|
|
Loading…
Reference in New Issue
Block a user