From 547e40b6b6f41f5d54a800ff17788bd57dd498b5 Mon Sep 17 00:00:00 2001 From: Brian Zalewski <59970525+ProfessorManhattan@users.noreply.github.com> Date: Mon, 27 Nov 2023 07:05:46 +0000 Subject: [PATCH] Added no-quarantine flags --- .../universal/run_onchange_after_97-cloudflare.sh.tmpl | 2 +- .../universal/run_onchange_before_11-install-docker.sh.tmpl | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/home/.chezmoiscripts/universal/run_onchange_after_97-cloudflare.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_after_97-cloudflare.sh.tmpl index 1e826940..80bf8ebb 100644 --- a/home/.chezmoiscripts/universal/run_onchange_after_97-cloudflare.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_after_97-cloudflare.sh.tmpl @@ -59,7 +59,7 @@ if [[ ! "$(test -d /proc && grep Microsoft /proc/version > /dev/null)" ]]; then if [ -d /System ] && [ -d /Applications ]; then ### Install on macOS if [ ! -d "/Applications/Cloudflare WARP.app" ]; then - brew install --cask cloudflare-warp + brew install --cask --no-quarantine cloudflare-warp else logg info 'Cloudflare WARP already installed' fi diff --git a/home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.sh.tmpl b/home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.sh.tmpl index 338e5ff2..8fa5168d 100644 --- a/home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.sh.tmpl +++ b/home/.chezmoiscripts/universal/run_onchange_before_11-install-docker.sh.tmpl @@ -20,9 +20,7 @@ if [ -d /Applications ] && [ -d /System ]; then # macOS if [ ! -d /Applications/Docker.app ]; then logg info 'Installing Docker on macOS via Homebrew cask' - brew install --cask docker - logg info 'Removing Docker.app quarantine status' - sudo xattr -r -d com.apple.quarantine /Applications/Docker.app + brew install --cask --no-quarantine docker else logg info 'Docker appears to be installed already' fi @@ -117,7 +115,7 @@ function gVisorPreBuilt() { function gVisorGo() { # Official build timed out - use Go method logg info 'Installing gVisor using the Go fallback method' - sudo chown -Rf sudo chown -Rf rclone:rclone "$PRIVATE_SHARE" || sudo chown -Rf rclone:$(id -g -n) "$PRIVATE_SHARE" /usr/local/src/gvisor + sudo chown -Rf "$(whoami)" /usr/local/src/gvisor cd /usr/local/src/gvisor echo "module runsc" > go.mod GO111MODULE=on go get gvisor.dev/gvisor/runsc@go