functions.sh: missing then in conditional