From 33202d5c557717c2738c05f7fea616cc7225ffe1 Mon Sep 17 00:00:00 2001 From: Tej Chajed Date: Tue, 12 Nov 2024 08:16:28 -0600 Subject: [PATCH] Make macos_allow_gatekeeper a bit safer Removed an extra newline and ensured it runs in the script directory regardless of the working directory. --- tools/vargo/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/vargo/src/main.rs b/tools/vargo/src/main.rs index a4591121c..6c4241dab 100644 --- a/tools/vargo/src/main.rs +++ b/tools/vargo/src/main.rs @@ -1162,11 +1162,12 @@ fn run() -> Result<(), String> { let mut dependency_missing = false; let mut macos_prepare_script = format!( - r#" -#!/bin/bash + r#"#!/bin/bash set -e set -x +cd "$( dirname "${{BASH_SOURCE[0]}}" )" + "# ); use std::fmt::Write;