Skip to content

Commit

Permalink
fix syntax in reading user defined custom resolution. It should be fe…
Browse files Browse the repository at this point in the history
…d as an array into the create_res function
  • Loading branch information
Peter Pham authored and Peter Pham committed Jul 3, 2024
1 parent 85357f7 commit da32590
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hidpi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -716,8 +716,13 @@ function end() {
# custom resolution
function custom_res() {
echo "${langCustomRes}"
read -p ":" res
create_res ${res}
read -p ":" input_resolutions

# Split the input into an array
IFS=' ' read -r -a resolution_array <<< "$input_resolutions"

# Call the create_res function with the array elements
create_res "${resolution_array[@]}"
}

# create resolution
Expand Down

0 comments on commit da32590

Please sign in to comment.