From 6f7b430a5399b92d8a7bf6591b4e172551db4528 Mon Sep 17 00:00:00 2001 From: behnazh-w Date: Fri, 12 Apr 2024 13:54:50 +1000 Subject: [PATCH] fix: fix a compatibility issue in run_macaron.sh for macOS Signed-off-by: behnazh-w --- scripts/release_scripts/run_macaron.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/release_scripts/run_macaron.sh b/scripts/release_scripts/run_macaron.sh index cf24f7fd0..daf8d792b 100755 --- a/scripts/release_scripts/run_macaron.sh +++ b/scripts/release_scripts/run_macaron.sh @@ -156,7 +156,8 @@ function assert_path_exists() { function create_dir_if_not_exists() { dir=$1 if [ ! -d "$dir" ]; then - mkdir --parents "$dir" + # Use the `-p` option for `mkdir` intead of `--parents` to be compatible with macOS. + mkdir -p "$dir" fi }