From 194b6b672d6ce63f9ee00c54c37fa6fff6ab0009 Mon Sep 17 00:00:00 2001 From: PedoDeveloper Date: Mon, 11 Nov 2024 13:05:32 +0000 Subject: [PATCH] Minor code cleanup --- modules/archive.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/archive.sh b/modules/archive.sh index aa40b1c..b6be4aa 100755 --- a/modules/archive.sh +++ b/modules/archive.sh @@ -18,9 +18,7 @@ check_dependencies() { if ! mkdir -p "$archive_dir"; then echo "ERROR: Unable to create archive directory" exit 1 - fi - - if ! command -v 7z 2>&1 >/dev/null; then + elif ! command -v 7z 2>&1 >/dev/null; then echo "ERROR: 7z must be installed" exit 1 fi