all set up vibes

This commit is contained in:
gauthiier
2021-12-05 18:12:01 +01:00
parent 7f8b4f5325
commit f692fca824
8 changed files with 356 additions and 2 deletions
Executable
+33
View File
@@ -0,0 +1,33 @@
#!/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"