Skip to content

Commit

Permalink
Minor fix: Create root dir when it doesn't exist. (pytorch#5075)
Browse files Browse the repository at this point in the history
realpath works differently on MacOS

Change-Id: I17e114cd289692aa6de8a5b4e6f29fc1734aca08
  • Loading branch information
freddan80 authored Sep 10, 2024
1 parent e245590 commit 4cce620
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/arm/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ fi
### Optional user args
########
root_dir=${1:-"${script_dir}/ethos-u-scratch"}
mkdir -p ${root_dir}
root_dir=$(realpath ${root_dir})

########
Expand Down Expand Up @@ -246,7 +247,6 @@ fi
cd "${script_dir}"

# Setup the root dir
mkdir -p "${root_dir}"
cd "${root_dir}"
echo "[main] Using root dir ${root_dir}"

Expand Down

0 comments on commit 4cce620

Please sign in to comment.