#!/bin/sh

if [ "$1" = "thelounge" -a "$(id -u)" = '0' ]; then
    find "${THELOUNGE_HOME}" \! -user node -exec chown node '{}' +
    exec su node -c "$*"
fi

exec "$@"

#!/bin/sh

if [ "$1" = "thelounge" ] && [ "$(id -u)" = '0' ]; then
    find "${THELOUNGE_HOME}" \! -user node -exec chown node '{}' +
    exec su node -c "$*"
fi

exec "$@"

Fix bug in conditional expression
Fix bug in conditional expression

Shellcheck complains that use of '-a' is not well-defined and recommends '&&', and also to separate each expression between '&&' with brackets.