Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
thalia
concrexit
Commits
10cb63aa
Unverified
Commit
10cb63aa
authored
Jan 24, 2018
by
Thom Wiggers
📐
Browse files
More compatible sed call
parent
2f0a5a4e
Changes
1
Hide whitespace changes
Inline
Side-by-side
release.sh
View file @
10cb63aa
...
...
@@ -32,7 +32,7 @@ if [ "$1" = "" ]; then
exit
1
fi
version
=
"
$1
"
version_sane
=
"
$(
echo
$version
|
sed
's/^[0-9]\.[0-9]
\+
\.[0-9]
\+
$/YES/'
)
"
version_sane
=
"
$(
echo
$version
|
sed
-Ee
's/^[0-9]\.[0-9]
{1,}
\.[0-9]
{1,}
$/YES/'
)
"
if
[
"
$version_sane
"
!=
"YES"
]
;
then
echo
"Version should be in the format '1.23.45'"
exit
1
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment