Make bash script and fix shit cuz debian
This commit is contained in:
parent
734576c712
commit
d117b888a6
|
@ -1,4 +1,4 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
# Daniel Bowling <swaggboi@slackware.uk>
|
# Daniel Bowling <swaggboi@slackware.uk>
|
||||||
# Dec 2020
|
# Dec 2020
|
||||||
|
@ -31,21 +31,21 @@ conv_vid() {
|
||||||
for file in "$PWD"/*; do
|
for file in "$PWD"/*; do
|
||||||
if [ -f "$file" ]; then
|
if [ -f "$file" ]; then
|
||||||
case "$file" in
|
case "$file" in
|
||||||
*".M4V"|*".m4v")
|
*".m4v")
|
||||||
oldfile=$file
|
oldfile=$file
|
||||||
newfile=${oldfile/+(.M4V|.m4v)/.mp4}
|
newfile=${oldfile/%.m4v/.mp4}
|
||||||
;;
|
;;
|
||||||
*".AVI"|*".avi")
|
*".avi")
|
||||||
oldfile=$file
|
oldfile=$file
|
||||||
newfile=${oldfile/+(.AVI|.avi)/.mp4}
|
newfile=${oldfile/%.avi/.mp4}
|
||||||
;;
|
;;
|
||||||
*".MKV"|*".mkv")
|
*".mkv")
|
||||||
oldfile=$file
|
oldfile=$file
|
||||||
newfile=${oldfile/+(.MKV|.mkv)/.mp4}
|
newfile=${oldfile/%.mkv/.mp4}
|
||||||
;;
|
;;
|
||||||
*".MP4"|*".mp4")
|
*".mp4")
|
||||||
oldfile=$file
|
oldfile=$file
|
||||||
newfile=${oldfile/+(.MP4|.mp4)/.NEW.mp4}
|
newfile=${oldfile/%.mp4/.NEW.mp4}
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
# Next iteration of big ol loop
|
# Next iteration of big ol loop
|
Loading…
Reference in a new issue