From aacf5ee4e0277589e021f39ec9c3e5124a237482 Mon Sep 17 00:00:00 2001 From: Tube <7u83@mail.ru> Date: Tue, 24 Oct 2023 23:17:40 +0200 Subject: [PATCH] Script is now silient --- scripts/del-files-not-in-list.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/del-files-not-in-list.sh b/scripts/del-files-not-in-list.sh index d5a159b..04feb8e 100644 --- a/scripts/del-files-not-in-list.sh +++ b/scripts/del-files-not-in-list.sh @@ -8,14 +8,14 @@ list_file="$2" # Check if the folder exists if [ ! -d "$folder_path" ]; then - echo "Folder does not exist: $folder_path" - exit 1 + # echo "Folder does not exist: $folder_path" + exit 0 fi # Check if the list file exists if [ ! -f "$list_file" ]; then - echo "List file does not exist: $list_file" - exit 1 +# echo "List file does not exist: $list_file" + exit 0 fi # Loop through the files in the folder