mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
9 lines
206 B
Bash
9 lines
206 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# If $1 looks like v1.2.3 or v1.2.3-foo, strip the leading v, then print it to stdout
|
||
|
if [[ $1 =~ ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-.+)?$ ]]; then
|
||
|
echo ${1:1}
|
||
|
else
|
||
|
echo $1
|
||
|
fi
|