From 9b29d703a41cf8471f0e1ac9b153aacf2c401ad5 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 9f673d05d59b..2cdfce1a291e 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