make sh DRY