anindya-hf-2002 commited on
Commit
52b676d
·
verified ·
1 Parent(s): fe52a97

Update execute.sh

Browse files
Files changed (1) hide show
  1. execute.sh +5 -2
execute.sh CHANGED
@@ -8,8 +8,11 @@ log() {
8
  # Install and run Ollama
9
  log "Starting Ollama installation..."
10
  if ! curl -fsSL https://ollama.com/install.sh | sh; then
11
- log "Failed to install Ollama."
12
- exit 1
 
 
 
13
  fi
14
  log "Ollama installation completed."
15
 
 
8
  # Install and run Ollama
9
  log "Starting Ollama installation..."
10
  if ! curl -fsSL https://ollama.com/install.sh | sh; then
11
+ # If the initial installation fails, try using sudo
12
+ if ! curl -fsSL https://ollama.com/install.sh | sudo sh; then
13
+ log "Failed to install Ollama even with sudo."
14
+ exit 1
15
+ fi
16
  fi
17
  log "Ollama installation completed."
18