()
| 59 | * Returns an array of file paths that have bash permissions. |
| 60 | */ |
| 61 | export function getBashPermissionSources(): string[] { |
| 62 | const sources: string[] = [] |
| 63 | |
| 64 | const projectRules = getPermissionRulesForSource('projectSettings') |
| 65 | if (hasBashPermission(projectRules)) { |
| 66 | sources.push(PROJECT_SETTINGS_DISPLAY_PATH) |
| 67 | } |
| 68 | |
| 69 | const localRules = getPermissionRulesForSource('localSettings') |
| 70 | if (hasBashPermission(localRules)) { |
| 71 | sources.push(LOCAL_SETTINGS_DISPLAY_PATH) |
| 72 | } |
| 73 | |
| 74 | return sources |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * Format a list of items with proper "and" conjunction. |
no test coverage detected