From da3e0801906d7031910e8d75e9e61eea6932a432 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Fri, 27 Jan 2023 11:51:02 +0400 Subject: [PATCH] Changed directory for converted files --- .convert_helper.sh | 2 +- .gitignore | 1 + convert.sh | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.convert_helper.sh b/.convert_helper.sh index d8bcc7b..a8f3e0a 100644 --- a/.convert_helper.sh +++ b/.convert_helper.sh @@ -1,2 +1,2 @@ #!/usr/bin/env bash -ffmpeg -i "$1" "$(echo "$1" | sed -E "s/\.[A-Za-z0-9]+$/.$2/")" +ffmpeg -i "$1" "$(echo "$1" | sed -E "s/\.[A-Za-z0-9]+$/.$2/" | sed "s#\./files#./convert#")" diff --git a/.gitignore b/.gitignore index bfabe1d..ee0306b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ files/ +convert/ .vscode/ diff --git a/convert.sh b/convert.sh index ec75b17..2c8c55f 100755 --- a/convert.sh +++ b/convert.sh @@ -1,6 +1,7 @@ #!/usr/bin/env bash trap 'echo; echo "Exit"; exit 0' SIGINT +mkdir -p ./convert echo "Enter input files extension:" echo "(empty string to match all)"