title: Bash -o operator
body: <p>I am trying to use a bash script to delete directories on user log out. Here's what I have:</p>
  
  <pre><code>#!/bin/bash
  
  if [[ $1 == "user1" -o $1 == "user2" -o $1 == "user3" ]]; then
        exit 0
  
  rm -r /Users/$1
  fi
  </code></pre>
  
  <p>Each time I run this script interactively, I get a syntax error. Unexpected expression near "-o". I am a bit stumped. The goal of the script is to delete all directories except user1, user2 and user3. What's wrong with the code?</p>