Load version from file
This commit is contained in:
parent
cca5fafae6
commit
705c6610d2
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
version="0.2.2"
|
||||
script_dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
tmp_dir="$(mktemp -d --suffix=-web)"
|
||||
version="$(head -n 1 "$script_dir/VERSION")"
|
||||
cleanup () { rm -Rfv "$tmp_dir"; }
|
||||
trap cleanup EXIT
|
||||
|
||||
|
|
Loading…
Reference in New Issue