remove Trash folder if existing

This commit is contained in:
mauwii 2023-02-09 04:00:51 +01:00
parent 0dce3188cc
commit 8bd04654c7
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB

View File

@ -31,3 +31,11 @@ docker run \
--cap-add=sys_nice \ --cap-add=sys_nice \
${GPU_FLAGS:+--gpus="${GPU_FLAGS}"} \ ${GPU_FLAGS:+--gpus="${GPU_FLAGS}"} \
"${CONTAINER_IMAGE}" ${@:+$@} "${CONTAINER_IMAGE}" ${@:+$@}
# Remove Trash folder
for f in outputs/.Trash*; do
if [ -e "$f" ]; then
rm -Rf "$f"
break
fi
done