From 0444cb5eb1875467efec921b481d6b3def98a327 Mon Sep 17 00:00:00 2001 From: RealStickman Date: Tue, 26 Jan 2021 09:49:24 +0100 Subject: [PATCH] Add file to delete transcode folder --- .../scripts/pieces/music-delete-transcode.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 arch-config/scripts/pieces/music-delete-transcode.sh diff --git a/arch-config/scripts/pieces/music-delete-transcode.sh b/arch-config/scripts/pieces/music-delete-transcode.sh new file mode 100644 index 00000000..4fe99043 --- /dev/null +++ b/arch-config/scripts/pieces/music-delete-transcode.sh @@ -0,0 +1,16 @@ +#!/usr/bin/env bash +set -euo pipefail + +# change into music raw folder +cd "$HOME/MusikRaw" + +# get directories +ls -d */ > directories + +while read -r dir; do + cd "$dir" + rm -rf "transcode" + cd "$HOME/MusikRaw" +done < directories + +exit