FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pre-commit-java/update.sh at main · caoychn/pre-commit-java · GitHub
caoychn
/
pre-commit-java
Public
forked from
gherynos/pre-commit-java
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
pre-commit-java
/
update.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
9 lines (6 loc) · 640 Bytes
Breadcrumbs
pre-commit-java
/
update.sh
Copy path
File metadata and controls
9 lines (6 loc) · 640 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
#!
/bin/bash
set
-e
pmd_current=
$(
curl --silent https://api.github.com/repos/pmd/pmd/releases/latest
|
jq
'
.assets[] | select(.name | contains("pmd-dist-") and contains("-bin.zip")) | .browser_download_url
'
|
sed -e
'
s/^"//
'
-e
'
s/"$//
'
)
sed -i -e
"
s|PMD_RELEASE=.*|PMD_RELEASE=
\"
$pmd_current
\"
|g
"
install.sh
checkstyle_current=
$(
curl --silent https://api.github.com/repos/checkstyle/checkstyle/releases/latest
|
jq
'
.assets[] | select(.name | contains("checkstyle-") and contains(".jar")) | .browser_download_url
'
|
sed -e
'
s/^"//
'
-e
'
s/"$//
'
)
sed -i -e
"
s|CHECKSTYLE_RELEASE=.*|CHECKSTYLE_RELEASE=
\"
$checkstyle_current
\"
|g
"
install.sh
Back
|
FazBrowse Home
|
New Git URL