mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
Merge pull request #252 from TaiPhamD/custom_resolution_fix
fix syntax in reading user defined custom resolution since the input should be coming in as an array
This commit is contained in:
9
hidpi.sh
9
hidpi.sh
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user