mirror of
https://github.com/element-hq/element-web
synced 2024-11-25 18:55:58 +03:00
10 lines
214 B
Bash
Executable file
10 lines
214 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
# 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
|