Skip to content

Commit

Permalink
Ensure that folder exists before moving ipfs binary.
Browse files Browse the repository at this point in the history
On macOS Monterey there is no /usr/local/bin folder and we need to
create it.
  • Loading branch information
ajnavarro committed May 4, 2022
1 parent cab6927 commit 9b29d70
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/ipfs/dist/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ is_write_perm_missing=""
for raw in $binpaths; do
# Expand the $HOME variable.
binpath=$(eval echo "$raw")
mkdir -p $binpath
if mv "$bin" "$binpath/ipfs" ; then
echo "Moved $bin to $binpath"
exit 0
Expand Down

0 comments on commit 9b29d70

Please sign in to comment.