Skip to content

Commit

Permalink
Fix installation path for snyk (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabasoad authored Nov 8, 2021
1 parent 1e3ee23 commit 9f64c4d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hooks/_check-installation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ then
os="win"
fi

curl -s https://static.snyk.io/cli/latest/release.json | jq ".assets.\"snyk-${os}\".url" | xargs curl --output "${HOME}"/bin/snyk
export PATH="${HOME}/bin/:$PATH"
INSTALLATION_DIR="${HOME}"/bin
mkdir -p "${INSTALLATION_DIR}"
curl -s https://static.snyk.io/cli/latest/release.json | jq ".assets.\"snyk-${os}\".url" | xargs curl --output "${INSTALLATION_DIR}"/snyk
export PATH="${INSTALLATION_DIR}/:$PATH"
fi

0 comments on commit 9f64c4d

Please sign in to comment.