Skip to content

Commit

Permalink
Merge pull request #252 from TaiPhamD/custom_resolution_fix
Browse files Browse the repository at this point in the history
fix syntax in reading user defined custom resolution since the input should be coming in as an array
  • Loading branch information
xzhih authored Jul 3, 2024
2 parents 85357f7 + da32590 commit 5efde10
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 5efde10

Please sign in to comment.