Setting current resource to shell only once