Skip to content

install.sh: syntax error on macOS - } used instead of fi #180

@XtremeCurling

Description

@XtremeCurling

Bug

Following the install guide on macOS with default bash (3.2.57):

bash <(curl -sL https://raw.githubusercontent.com/databricks-solutions/ai-dev-kit/main/install.sh)

Throws the following syntax error:

/dev/fd/11: line 862: syntax error near unexpected token `}'

Cause

install.sh line 862 closes an if block with } instead of fi:

    if [ "$SCOPE" = "project" ]; then                                                                                                                                                                                                    
        mkdir -p ".ai-dev-kit"                                                                                                                                                                                                           
        echo "$ver" > ".ai-dev-kit/version"
    }   # <-- should be "fi"

This appears to cause a syntax error on macOS with bash 3.2.57.

Metadata

Metadata

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions