Fixed quarantine issue

This commit is contained in:
Brian Zalewski 2023-11-27 07:04:01 +00:00
parent 52be2d6762
commit bc2d6ce755

View file

@ -814,7 +814,7 @@ async function beforeInstall(packageManager) {
if (osType === 'darwin') { if (osType === 'darwin') {
const docker = which.sync('docker', { nothrow: true }) const docker = which.sync('docker', { nothrow: true })
if (!docker) { if (!docker) {
await $`brew install --cask docker` await $`brew install --cask --no-quarantine docker`
} }
try { try {
await $`sudo -c 'docker run --rm hello-world' - ${process.env.USER}` await $`sudo -c 'docker run --rm hello-world' - ${process.env.USER}`
@ -1300,7 +1300,7 @@ async function installPackageList(packageManager, packages) {
} else if (packageManager === 'cask') { } else if (packageManager === 'cask') {
for (let pkg of packages) { for (let pkg of packages) {
try { try {
runCommand(`Installing ${pkg} via ${packageManager}`, `brew install --cask ${pkg}`) runCommand(`Installing ${pkg} via ${packageManager}`, `brew install --cask --no-quarantine ${pkg}`)
log('success', 'Install', `${pkg} successfully installed via ${packageManager}`) log('success', 'Install', `${pkg} successfully installed via ${packageManager}`)
} catch (e) { } catch (e) {
log('error', 'Install', `There was an error installing ${pkg} with Homebrew Cask`) log('error', 'Install', `There was an error installing ${pkg} with Homebrew Cask`)