mirror of
https://git.tuxpa.in/a/code-server.git
synced 2024-12-26 04:14:29 +00:00
11 lines
325 B
Bash
11 lines
325 B
Bash
|
#!/usr/bin/env bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
set_version() {
|
||
|
local code_server_version=${VERSION:-${TRAVIS_TAG:-}}
|
||
|
if [[ -z $code_server_version ]]; then
|
||
|
code_server_version=$(grep version ./package.json | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[:space:]')
|
||
|
fi
|
||
|
export VERSION=$code_server_version
|
||
|
}
|