diff --git a/install/functions.sh b/install/functions.sh index 8f21c84..2f1a50b 100644 --- a/install/functions.sh +++ b/install/functions.sh @@ -23,3 +23,10 @@ function install_venv { pip3 freeze | grep virtualenv echo "Virualenv is now installed on your python3." } + +# this function installs the upzip command +function set_unzip { + sudo apt install unzip + unzip -v + echo "Unzip is now installed on your system." +} diff --git a/install/installer.sh b/install/installer.sh index 137af5f..c6ee393 100755 --- a/install/installer.sh +++ b/install/installer.sh @@ -21,6 +21,11 @@ function check_requirments { else echo "> Venv status : OK" fi + if ! [[ "$(unzip -v)" =~ "UnZip" ]]; then + set_unzip + else + echo "> Unzip status : OK" + fi echo "Requirements checked." }