minor bugfixes
This commit is contained in:
parent
49f9ba872d
commit
f60accf252
1 changed files with 3 additions and 3 deletions
|
@ -38,10 +38,10 @@ done
|
||||||
|
|
||||||
# Choose an encoder
|
# Choose an encoder
|
||||||
while :; do
|
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; }
|
[[ $encoder =~ ^[0-9]+$ ]] || { echo "Enter a valid number"; continue; }
|
||||||
if ((encoder >= 0 && encoder < ${#encoders[@]})); then
|
if ((encoder >= 0 && encoder < ${#encoders[@]})); then
|
||||||
encoder=$(echo ${encoders[$encoder]} | awk '{print $2}')
|
encoder=$(echo "${encoders[$encoder]}" | awk '{print $2}')
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
echo "Not a valid encoder, try again"
|
echo "Not a valid encoder, try again"
|
||||||
|
@ -56,7 +56,7 @@ extension="${extension[*]}"
|
||||||
extension=${extension// /|}
|
extension=${extension// /|}
|
||||||
|
|
||||||
for file in **/*.@($extension); do
|
for file in **/*.@($extension); do
|
||||||
echo $encoder
|
echo "$encoder"
|
||||||
|
|
||||||
#https://wiki.archlinux.org/title/Hardware_video_acceleration
|
#https://wiki.archlinux.org/title/Hardware_video_acceleration
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue