This commit is contained in:
dmc
2024-01-15 19:59:54 +01:00
parent 7d8edc64f0
commit df2bd1336f

View File

@@ -150,7 +150,7 @@ customElements.define('system-status', class extends HTMLElement {
const profiles = Object.values(this.shellProfiles)
if (profiles.length > 0) {
for (const { filepath, hasPear } of profiles) {
if (hasPear === false) fs.writeFileSync(filepath, this.statement, { flag: 'a' })
if (hasPear === false) fs.writeFileSync(filepath, '\n' + this.statement + '\n', { flag: 'a' })
}
} else {
const bash = this.paths.some((bin) => fs.existsSync(path.join(bin, 'bash')))