Skip to content

Commit

Permalink
change back to uname
Browse files Browse the repository at this point in the history
  • Loading branch information
jckras committed Oct 7, 2024
1 parent 46a46f5 commit 941ec94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions run.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
set -ex

# UNAME=$(uname -s)
echo "OSTYPE is: $OSTYPE"
UNAME=$(uname -s)
# echo "OSTYPE is: $OSTYPE"

# VENV_NAME=".venv"
echo "Current Directory: $(pwd)"
Expand All @@ -26,7 +26,7 @@ echo "Checking for virtual environment folder..."
# if [ ! -d "$VENV_NAME" ]; then
# echo "Setting up virtual environment..."

if [ "$OSTYPE" = "linux-gnu"* ]; then
if [ "$UNAME" = "Linux" ]; then
echo "Installing uv on Linux"
# Check if pip is installed
if ! command -v pip &> /dev/null; then
Expand All @@ -36,7 +36,7 @@ if [ "$OSTYPE" = "linux-gnu"* ]; then
pip install uv
fi

if [ "$OSTYPE" = "darwin"* ]; then
if [ "$UNAME" = "Darwin" ]; then
echo "Installing uv on Darwin"
# brew install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
Expand Down

0 comments on commit 941ec94

Please sign in to comment.