Ensure that folder exists before moving ipfs binary.
On macOS Monterey there is no /usr/local/bin folder and we need to create it.
Antonio Navarro Perez committed
May 4, 2022 at 13:38 UTC
7e488c1c167c0a867eb0233b61b3eaca86a638b9
1 file changed
+1
cmd/ipfs/dist/install.sh
+1
@@ -15,6 +15,7 @@ is_write_perm_missing=""
15
for raw in $binpaths; do
16
# Expand the $HOME variable.
17
binpath=$(eval echo "$raw")
18
+ mkdir -p "$binpath"
19
if mv "$bin" "$binpath/ipfs" ; then
20
echo "Moved $bin to $binpath"
21
exit 0