assert_we_have_all_dependencies

This commit is contained in:
Kay0u 2020-12-18 19:43:51 +01:00
parent 706349abde
commit 88cf83cd8e
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D
2 changed files with 8 additions and 0 deletions

View file

@ -43,6 +43,13 @@ assert_we_are_connected_to_the_internets() {
|| log_critical "Unable to connect to internet."
}
assert_we_have_all_dependencies() {
for dep in "lxc" "lynx"
do
which $dep 2>&1 > /dev/null || log_critical "Please install $dep"
done
}
function check_lxd_setup()
{
# Check lxd is installed somehow

View file

@ -184,6 +184,7 @@ FETCH_PACKAGE_TO_TEST() {
###################################
assert_we_are_connected_to_the_internets
assert_we_have_all_dependencies
#self_upgrade # FIXME renenable this later
fetch_or_upgrade_package_linter