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:
Peter Pham
2024-07-02 22:37:59 -07:00
parent 85357f7e30
commit da32590d0c

View File

@@ -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