Skip to content

Commit

Permalink
Merge pull request #94 from hmrc/usr-local-bin
Browse files Browse the repository at this point in the history
handle when /usr/local/bin not present
  • Loading branch information
jordanrowe authored Oct 17, 2023
2 parents 1746f74 + 5565d00 commit 515c087
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ download_sm2() {
echo "Found existing sm2 binary at ${SM2_BINARY_LOCATION}. Using existing location."
else
SM2_BINARY_LOCATION="/usr/local/bin/sm2"
if [ ! -d "/usr/local/bin" ]; then
sudo mkdir -p /usr/local/bin
fi
fi

echo "Installing sm2 binary to ${SM2_BINARY_LOCATION}"
Expand Down

0 comments on commit 515c087

Please sign in to comment.