fix shellcheck errors

This commit is contained in:
Chris Titus 2024-09-19 14:08:41 -05:00
parent 4405670c19
commit f0e8861d25
2 changed files with 3 additions and 2 deletions

View File

@ -41,8 +41,8 @@ main_menu() {
printf "4. Disconnect from a device\n"
printf "5. Remove a device\n"
printf "0. Exit\n"
printf -n "Choose an option: "
read choice
printf "Choose an option: "
read -r choice
case $choice in
1) scan_devices ;;

View File

@ -29,6 +29,7 @@ auto_detect_displays() {
if [ -z "$common_resolutions" ]; then
printf "%b\n" "${RED}No common resolution found among connected monitors.${RC}"
return
fi
highest_resolution=$(echo "$common_resolutions" | sort -n -t'x' -k1,1 -k2,2 | tail -n 1)