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) { } else if (freebsd) {
return 'freebsd' return 'freebsd'
} else { } else {
const macOS = await $`test -d /Applications && test -d Library` try {
if (macOS.exitCode === 0) { await $`test -d /Applications && test -d /Library`
return 'darwin' return 'darwin'
} else { } catch (e) {
return 'windows' return 'windows'
} }
} }

View file

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