We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62b09d1 commit ed67c44Copy full SHA for ed67c44
download-osemgrep-pro.sh
@@ -9,7 +9,8 @@ case "${uname}" in
9
*) machine=manylinux;;
10
esac
11
# NOT the same as the semgrep version!!!!
12
-OSEMGREP_PRO_VERSION=$(cat ./osemgrep-pro-version)
+release_char_count=$(echo "release-" | wc -c)
13
+OSEMGREP_PRO_VERSION=$(cat ./semgrep-version | cut -c $((release_char_count))-)
14
BINARY=semgrep-core-proprietary-${machine}-${OSEMGREP_PRO_VERSION}
15
# Check if osemgrep-pro exists and if its a symlink then exit
16
if [ -L dist/osemgrep-pro ]; then
osemgrep-pro-version
0 commit comments