mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +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 "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 ;;
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user