From 37aef5a70d2f3be051e810b6eb1477cdd1d76bab Mon Sep 17 00:00:00 2001 From: VolandSZ <{E-MAIL}> Date: Tue, 16 Jun 2026 00:04:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83=20=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D1=8F=20?= =?UTF-8?q?=D0=B4=D0=B8=D1=80=D0=B5=D0=BA=D1=82=D0=BE=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- torrent_sort.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/torrent_sort.sh b/torrent_sort.sh index c267163..9a39455 100644 --- a/torrent_sort.sh +++ b/torrent_sort.sh @@ -190,7 +190,19 @@ if [[ $2 == 'Anime' ]]; then INFO_TXT="$TARGET_DIR/info.txt" if [ ! -d "$TARGET_DIR" ]; then - mkdir -p "$TARGET_DIR" + if ! mkdir -p "$TARGET_DIR"; then + + log_error "Failed to create target directory + +Path='$TARGET_DIR' +current_user='$(id -un)' +current_group='$(id -gn)' +current_uid='$(id -u)' +current_gid='$(id -g)'" + + continue + fi + echo "=== Anime Info: $TITLE ===" > "$INFO_TXT" fi