Skip to content

I Think I Am Being Dumb - Syntax Error - install-ut2004.sh: 34: Syntax error: "(" unexpected (expecting "}") #45

@eliot-cole

Description

@eliot-cole

... it's very likely I am dumb ... 🤫

disclaimer
I totally feel no entitlement or expectation to anyone's time or energy, here ...
I am posting this because I'm ... well ... I'm clueless!

When Installing Via Script It Fails

OK, so, I execute the following to install to a specific folder in Debian 12 (gnome wayland) on the bash terminal:

sh ./scripts/install-ut2004.sh --destination=~/Games/OldUnreal/UT2004

When I do it errors with:

./scripts/install-ut2004.sh: 34: Syntax error: "(" unexpected (expecting "}")

I am assuming that I am the person that made the mistake, here ... sooooooo ... what have I fudged? 😅

PS - Sudo makes no odds ... tap here for all other attempts that resulted in the same error 🙁
sudo sh ./scripts/install-ut2004.sh --destination=~/Games/OldUnreal/UT2004
sh ./scripts/install-ut2004.sh --destination='~/Games/OldUnreal/UT2004'
sh ./scripts/install-ut2004.sh -d '~/Games/OldUnreal/UT2004'
sh ./scripts/install-ut2004.sh -d ~/Games/OldUnreal/UT2004

Potential Area Of Interest? uimode

I opened the script and (whilst I truly do not really know my way around bash/scripts) line 34 is the first line inside the uimode section starting at line 33:

uimode() {
  local _allowed=("auto" "kdialog" "zenity" "none") _seeking="$1"
  for element in "${_allowed[@]}"; do
    test "$element" = "$_seeking" && echo "$element" && return 0
  done
  die "Value '$_seeking' (of argument '$2') doesn't match the list of allowed values: 'auto', 'kdialog', 'zenity' and 'none'" 4
}

But ... I don't really see what the issue is, there ... 🤷

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions