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 ()