Skip to content

Commit e2d8ff0

Browse files
authored
fix: fix a compatibility issue in run_macaron.sh for macOS (#701)
macOS does not support the --parents option in mkdir. This PR fixes the run_macaron.sh script by using the -p option instead to be compatible with macOS. Signed-off-by: behnazh-w <behnaz.hassanshahi@oracle.com>
1 parent 55cb242 commit e2d8ff0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/release_scripts/run_macaron.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ function assert_path_exists() {
156156
function create_dir_if_not_exists() {
157157
dir=$1
158158
if [ ! -d "$dir" ]; then
159-
mkdir --parents "$dir"
159+
# Use the `-p` option for `mkdir` intead of `--parents` to be compatible with macOS.
160+
mkdir -p "$dir"
160161
fi
161162
}
162163

0 commit comments

Comments
 (0)