From 64827c16c5a22ca1264c800a8dc33d5c9a3d53e6 Mon Sep 17 00:00:00 2001 From: timoxa0 Date: Sat, 2 Nov 2024 22:33:43 +0500 Subject: [PATCH] functions: Add packages check --- common.d/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common.d/functions.sh b/common.d/functions.sh index 1c4c40e..196cc6f 100644 --- a/common.d/functions.sh +++ b/common.d/functions.sh @@ -50,6 +50,10 @@ prepare_env() mkdir_if_not_exists "./out" mkdir_if_not_exists "./raw" mkdir_if_not_exists "./tmp" + [ ! -d "./packages" ] && { + log "Packages not found. Cannot continue" + exit 4 + } } require ()