Skip to content

Commit 4cce620

Browse files
authored
Minor fix: Create root dir when it doesn't exist. (#5075)
realpath works differently on MacOS Change-Id: I17e114cd289692aa6de8a5b4e6f29fc1734aca08
1 parent e245590 commit 4cce620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/arm/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ fi
9191
### Optional user args
9292
########
9393
root_dir=${1:-"${script_dir}/ethos-u-scratch"}
94+
mkdir -p ${root_dir}
9495
root_dir=$(realpath ${root_dir})
9596

9697
########
@@ -246,7 +247,6 @@ fi
246247
cd "${script_dir}"
247248

248249
# Setup the root dir
249-
mkdir -p "${root_dir}"
250250
cd "${root_dir}"
251251
echo "[main] Using root dir ${root_dir}"
252252

0 commit comments

Comments
 (0)