From 2a23641eac52258b46b4a28f8d73dc70b6e50a30 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 3 Feb 2019 14:48:32 +0100 Subject: extractAll: Delete source DS if conversion was successful --- extractAll.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractAll.sh b/extractAll.sh index 4aab128..5870e1f 100755 --- a/extractAll.sh +++ b/extractAll.sh @@ -13,7 +13,7 @@ while read -r F; do pushd "$destdir" || continue for G in ./*; do echo "Converting $G to ${G}.txt" - $root/convertFileDs.py "$G" > "${G}.txt" && touch -r "${G}" "${G}.txt" || rm "${G}.txt" + $root/convertFileDs.py "$G" > "${G}.txt" && touch -r "${G}" "${G}.txt" && rm "${G}" || rm "${G}.txt" done popd rm "$linear" -- cgit v1.2.3