From f0e8861d25c12d3bdf251ac9cfa7ad5ce6b4c38d Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 19 Sep 2024 14:08:41 -0500 Subject: [PATCH] fix shellcheck errors --- tabs/utils/bluetooth-control.sh | 4 ++-- tabs/utils/monitor-control/auto_detect_displays.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tabs/utils/bluetooth-control.sh b/tabs/utils/bluetooth-control.sh index ba8c8c9f..8ad2e813 100644 --- a/tabs/utils/bluetooth-control.sh +++ b/tabs/utils/bluetooth-control.sh @@ -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 ;; diff --git a/tabs/utils/monitor-control/auto_detect_displays.sh b/tabs/utils/monitor-control/auto_detect_displays.sh index c72d23b3..44352f6e 100755 --- a/tabs/utils/monitor-control/auto_detect_displays.sh +++ b/tabs/utils/monitor-control/auto_detect_displays.sh @@ -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)