Review shell scripts
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -23,14 +23,10 @@ pkgs.mkShell {
|
||||
if [ -d "$TOP/.venv" ]; then
|
||||
source "$TOP/.venv/bin/activate"
|
||||
else
|
||||
echo "No virtual environment found. Do you want to create one? (y/N)"
|
||||
read -r answer
|
||||
if [[ "$answer" =~ ^[Yy]$ ]]; then
|
||||
python -m venv "$TOP/.venv"
|
||||
source "$TOP/.venv/bin/activate"
|
||||
pip install --upgrade pip
|
||||
if [ -f "$TOP/requirements.txt" ]; then pip install -r "$TOP/requirements.txt"; fi
|
||||
fi
|
||||
python -m venv "$TOP/.venv"
|
||||
source "$TOP/.venv/bin/activate"
|
||||
pip install --upgrade pip
|
||||
if [ -f "$TOP/requirements.txt" ]; then pip install -r "$TOP/requirements.txt"; fi
|
||||
fi
|
||||
'';
|
||||
}
|
||||
|
Reference in New Issue
Block a user