Update duration-length.sh

This commit is contained in:
Jason TIAN 2022-04-02 22:29:07 +08:00 committed by GitHub
parent d153ed913a
commit 984c308631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
file="./scripts/duration-length.txt"
if [ ! -f "$file" ]
if [ -f "$file" ]
then
for i in $(cat $file); do
mp3=$(cat "$i" | grep "^mp3 =" | awk -F= '{print $2}')