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:
ZeRo° Xu
2024-07-03 22:56:59 +08:00
committed by GitHub

View File

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