From 50e2c8fa92251e5b72d76e29f78b0df1d52a48ae Mon Sep 17 00:00:00 2001 From: fruchti Date: Mon, 21 Oct 2019 14:08:31 +0200 Subject: [PATCH] Change permissions on created directories --- transcode.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/transcode.sh b/transcode.sh index 3846014..0512999 100644 --- a/transcode.sh +++ b/transcode.sh @@ -35,6 +35,9 @@ function mp3() if [ ! -d "$directory" ] ; then echo "New Directory: \"$directory\"" mkdir -p "$directory" || die "Could not create directory \"$directory\"." + if [ ! "$output_owner" = "" ] ; then + chown $output_owner "$directory" || die "Could not change permissions on \"$directory\"." + fi fi transcode=false @@ -114,6 +117,9 @@ function ogg() if [ ! -d "$directory" ] ; then echo "New Directory: \"$directory\"" mkdir -p "$directory" || die "Could not create directory \"$directory\"." + if [ ! "$output_owner" = "" ] ; then + chown $output_owner "$directory" || die "Could not change permissions on \"$directory\"." + fi fi transcode=false