Skip to content

Commit

Permalink
Creating /usr/local/bin if necessary in install script
Browse files Browse the repository at this point in the history
Related to #936
  • Loading branch information
Yomguithereal committed Apr 15, 2024
1 parent 0ef2ac5 commit dab6b67
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ fi
# Generic install script
cleanup

# Creating /usr/local/bin if missing
if test ! -d /usr/local/bin; then
echo "Creating missing /usr/local/bin directory"
sudo mkdir -p /usr/local/bin
fi

echo "Downloading $os binaries for $latest release..."
mkdir /tmp/minet
curl -sSL "https://github.com/medialab/minet/releases/download/$latest/$os.zip" > /tmp/minet.zip
Expand Down

0 comments on commit dab6b67

Please sign in to comment.