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;