From 7e488c1c167c0a867eb0233b61b3eaca86a638b9 Mon Sep 17 00:00:00 2001 From: Antonio Navarro Perez Date: Wed, 4 May 2022 13:38:09 +0200 Subject: [PATCH] Ensure that folder exists before moving ipfs binary. On macOS Monterey there is no /usr/local/bin folder and we need to create it. --- cmd/ipfs/dist/install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/ipfs/dist/install.sh b/cmd/ipfs/dist/install.sh index 9f673d05d..470927159 100755 --- a/cmd/ipfs/dist/install.sh +++ b/cmd/ipfs/dist/install.sh @@ -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