FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
client_java/scripts/set-version.sh at main · technicallyjames/client_java · GitHub
technicallyjames
/
client_java
Public
forked from
prometheus/client_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
client_java
/
scripts
/
set-version.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
16 lines (11 loc) · 398 Bytes
Breadcrumbs
client_java
/
scripts
/
set-version.sh
Copy path
File metadata and controls
executable file
·
16 lines (11 loc) · 398 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!
/usr/bin/env bash
set
-euo pipefail
VERSION=
$1
if
[
-z
"
$VERSION
"
]
;
then
echo
"
Usage:
$0
<version>
"
exit
1
fi
#
replace all occurrences '<version>1.4.0-SNAPSHOT</version>' with '<version>$VERSION</version>'
#
in all pom.xml files in the current directory and subdirectories
find
.
-name
'
pom.xml
'
-exec \
sed -i
"
s/<version>1.4.0-SNAPSHOT<\/version>/<version>
$VERSION
<\/version>/g
"
{} +
Back
|
FazBrowse Home
|
New Git URL