From d117b888a6d7cc7753bda895cca3fd1637fdde54 Mon Sep 17 00:00:00 2001 From: swaggboi Date: Thu, 28 Sep 2023 00:07:20 -0400 Subject: [PATCH] Make bash script and fix shit cuz debian --- mkmp4.sh => mkmp4.bash | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename mkmp4.sh => mkmp4.bash (79%) diff --git a/mkmp4.sh b/mkmp4.bash similarity index 79% rename from mkmp4.sh rename to mkmp4.bash index 40230df..0f89e39 100755 --- a/mkmp4.sh +++ b/mkmp4.bash @@ -1,4 +1,4 @@ -#!/usr/bin/env sh +#!/usr/bin/env bash # Daniel Bowling # Dec 2020 @@ -31,21 +31,21 @@ conv_vid() { for file in "$PWD"/*; do if [ -f "$file" ]; then case "$file" in - *".M4V"|*".m4v") + *".m4v") oldfile=$file - newfile=${oldfile/+(.M4V|.m4v)/.mp4} + newfile=${oldfile/%.m4v/.mp4} ;; - *".AVI"|*".avi") + *".avi") oldfile=$file - newfile=${oldfile/+(.AVI|.avi)/.mp4} + newfile=${oldfile/%.avi/.mp4} ;; - *".MKV"|*".mkv") + *".mkv") oldfile=$file - newfile=${oldfile/+(.MKV|.mkv)/.mp4} + newfile=${oldfile/%.mkv/.mp4} ;; - *".MP4"|*".mp4") + *".mp4") oldfile=$file - newfile=${oldfile/+(.MP4|.mp4)/.NEW.mp4} + newfile=${oldfile/%.mp4/.NEW.mp4} ;; *) # Next iteration of big ol loop