mirror of
https://github.com/xzhih/one-key-hidpi.git
synced 2026-04-13 01:13:42 +08:00
fix syntax in reading user defined custom resolution. It should be fed as an array into the create_res function
This commit is contained in:
9
hidpi.sh
9
hidpi.sh
@@ -716,8 +716,13 @@ function end() {
|
|||||||
# custom resolution
|
# custom resolution
|
||||||
function custom_res() {
|
function custom_res() {
|
||||||
echo "${langCustomRes}"
|
echo "${langCustomRes}"
|
||||||
read -p ":" res
|
read -p ":" input_resolutions
|
||||||
create_res ${res}
|
|
||||||
|
# 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
|
# create resolution
|
||||||
|
|||||||
Reference in New Issue
Block a user