minor bugfixes

This commit is contained in:
esche 2023-07-25 15:28:00 +02:00
parent 49f9ba872d
commit f60accf252

View file

@ -38,10 +38,10 @@ done
# Choose an encoder
while :; do
read -p "Choose an encoder [0]: " encoder
read -r -p "Choose an encoder [0]: " encoder
[[ $encoder =~ ^[0-9]+$ ]] || { echo "Enter a valid number"; continue; }
if ((encoder >= 0 && encoder < ${#encoders[@]})); then
encoder=$(echo ${encoders[$encoder]} | awk '{print $2}')
encoder=$(echo "${encoders[$encoder]}" | awk '{print $2}')
break
else
echo "Not a valid encoder, try again"
@ -56,7 +56,7 @@ extension="${extension[*]}"
extension=${extension// /|}
for file in **/*.@($extension); do
echo $encoder
echo "$encoder"
#https://wiki.archlinux.org/title/Hardware_video_acceleration