use bash and added inverse logic to test