mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
fix shellcheck errors
This commit is contained in:
parent
4405670c19
commit
f0e8861d25
|
@ -41,8 +41,8 @@ main_menu() {
|
||||||
printf "4. Disconnect from a device\n"
|
printf "4. Disconnect from a device\n"
|
||||||
printf "5. Remove a device\n"
|
printf "5. Remove a device\n"
|
||||||
printf "0. Exit\n"
|
printf "0. Exit\n"
|
||||||
printf -n "Choose an option: "
|
printf "Choose an option: "
|
||||||
read choice
|
read -r choice
|
||||||
|
|
||||||
case $choice in
|
case $choice in
|
||||||
1) scan_devices ;;
|
1) scan_devices ;;
|
||||||
|
|
|
@ -29,6 +29,7 @@ auto_detect_displays() {
|
||||||
if [ -z "$common_resolutions" ]; then
|
if [ -z "$common_resolutions" ]; then
|
||||||
printf "%b\n" "${RED}No common resolution found among connected monitors.${RC}"
|
printf "%b\n" "${RED}No common resolution found among connected monitors.${RC}"
|
||||||
return
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
highest_resolution=$(echo "$common_resolutions" | sort -n -t'x' -k1,1 -k2,2 | tail -n 1)
|
highest_resolution=$(echo "$common_resolutions" | sort -n -t'x' -k1,1 -k2,2 | tail -n 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user