Use unless statement instead of unless in exec