Update .local/share/chezmoi/home/dot_local/bin/executable_install-program, .local/bin/install-program

This commit is contained in:
Brian Zalewski 2022-12-02 16:55:33 +00:00
parent d0812639cf
commit d892b5624b
2 changed files with 6 additions and 6 deletions

View file

@ -139,10 +139,10 @@ async function OSTypeInstallerKey() {
} else if (freebsd) {
return 'freebsd'
} else {
const macOS = await $`test -d /Applications && test -d Library`
if (macOS.exitCode === 0) {
try {
await $`test -d /Applications && test -d /Library`
return 'darwin'
} else {
} catch (e) {
return 'windows'
}
}

View file

@ -139,10 +139,10 @@ async function OSTypeInstallerKey() {
} else if (freebsd) {
return 'freebsd'
} else {
const macOS = await $`test -d /Applications && test -d Library`
if (macOS.exitCode === 0) {
try {
await $`test -d /Applications && test -d /Library`
return 'darwin'
} else {
} catch (e) {
return 'windows'
}
}