Update .local/share/chezmoi/home/dot_local/bin/executable_install-program, .local/bin/install-program
This commit is contained in:
parent
d0812639cf
commit
d892b5624b
2 changed files with 6 additions and 6 deletions
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue