Skip to content

Commit

Permalink
Fix filename extension parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
remino committed Nov 18, 2022
1 parent 69feaa0 commit 69b0ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vidmod
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ _add_tag() {

inname="$( basename "$inpath" )"

innoext="$( echo "$inname" | sed 's/\..*$//g' )"
inext="$( echo "$inname" | grep -o '\..*$' )"
innoext="$( echo "$inname" | sed 's/\.[^.]*$//g' )"
inext="$( echo "$inname" | grep -o '\.[^.]*$' )"

case "$tag" in
mp4|qt) echo "$outputdir/$innoext.mp4" ;;
Expand Down

0 comments on commit 69b0ada

Please sign in to comment.