I am playing around with Bash for the first time.

This script will list all folders, however I want to modify it to not list a certain folder if possible.

Working:

```
_list_banners () {
  for f in * ; do [ -d "$f" ] && echo ${_handle_banner_type}${_handle_message} $f ; done
}

```

This works and lists the folders, but I want to exclude for example folder `MASTER` from the list.

Attempted:

```
_list_banners () {
  for f in * ;
    if [ $f != "MASTER" ]; then
      do [ -d "$f" ] && echo ${_handle_banner_type}${_handle_message} $f
    fi
  ; done
}

```

But when I run it, I get the following error instead of my file list:

```
$ bash myscript
myscript: line 3: syntax error near unexpected token `if'
myscript: line 3: `    if [ $f != "MASTER" ]; then'

```