functions: Add packages check

This commit is contained in:
timoxa0 2024-11-02 22:33:43 +05:00
parent 019eb296bc
commit 64827c16c5

View file

@ -50,6 +50,10 @@ prepare_env()
mkdir_if_not_exists "./out" mkdir_if_not_exists "./out"
mkdir_if_not_exists "./raw" mkdir_if_not_exists "./raw"
mkdir_if_not_exists "./tmp" mkdir_if_not_exists "./tmp"
[ ! -d "./packages" ] && {
log "Packages not found. Cannot continue"
exit 4
}
} }
require () require ()