#!/bin/bash if [ ! -d "venv/" ] then echo "venv DOES NOT exists..." if [[ "$(read -e -p 'Setup venv? [y/N]> '; echo $REPLY)" == [Yy]* ]] then echo "Creating python3 venv" python3 -m venv venv/ echo "Done." else echo "Aborting..." return fi fi source venv/bin/activate if [ ! "$(pip list | grep -F etherdump)" ] then echo "etherdump IS NOT installed" if [[ "$(read -e -p 'pip install etherdump? [y/N]> '; echo $REPLY)" == [Yy]* ]] then echo "Pip installing etherdump" pip install -e etherdump/ echo "Done." else echo "Aborting..." return fi fi echo "--------------------------------> env set"