Skip to content

Commit 9b29d70

Browse files
committed
Ensure that folder exists before moving ipfs binary.
On macOS Monterey there is no /usr/local/bin folder and we need to create it.
1 parent cab6927 commit 9b29d70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/ipfs/dist/install.sh

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ is_write_perm_missing=""
1515
for raw in $binpaths; do
1616
# Expand the $HOME variable.
1717
binpath=$(eval echo "$raw")
18+
mkdir -p $binpath
1819
if mv "$bin" "$binpath/ipfs" ; then
1920
echo "Moved $bin to $binpath"
2021
exit 0

0 commit comments

Comments
 (0)