Skip to content

Commit

Permalink
remove if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jckras committed Oct 4, 2024
1 parent 2d49432 commit e941447
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ echo "Checking for virtual environment folder..."
# if [ ! -d "$VENV_NAME" ]; then
# echo "Setting up virtual environment..."

if [ "$OSTYPE" = "linux-gnu"* ]; then
echo "Installing uv on Linux"
# Check if pip is installed
if ! command -v pip &> /dev/null; then
echo "'pip' not found. Installing pip..."
sudo apt-get update && sudo apt-get install -y python3-pip

fi
pip install uv
fi
# if [ "$OSTYPE" = "linux-gnu"* ]; then
# echo "Installing uv on Linux"
# # Check if pip is installed
# if ! command -v pip &> /dev/null; then
# echo "'pip' not found. Installing pip..."
# sudo apt-get update && sudo apt-get install -y python3-pip

# fi
# pip install uv
# fi

if [ "$OSTYPE" = "darwin"* ]; then
# if [ "$OSTYPE" = "darwin"* ]; then
echo "Installing uv on Darwin"
brew install uv
fi
# fi
# fi

uv venv --python=3.10
Expand Down

0 comments on commit e941447

Please sign in to comment.