Skip to content

Commit

Permalink
main functions done
Browse files Browse the repository at this point in the history
  • Loading branch information
Official21A committed Nov 22, 2020
1 parent 53e9617 commit a471b59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions install/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
5 changes: 5 additions & 0 deletions install/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}

Expand Down

0 comments on commit a471b59

Please sign in to comment.