mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-05 14:11:32 +00:00
krata: rewrite all repo infrastructure
This commit is contained in:
15
scripts/dist/version.sh
vendored
Executable file
15
scripts/dist/version.sh
vendored
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# shellcheck source=common.sh
|
||||
. "$(dirname "${0}")/common.sh"
|
||||
cd "${KRATA_DIR}"
|
||||
|
||||
KRATA_VERSION="$(grep -A1 -F '[workspace.package]' Cargo.toml | grep 'version' | awk '{print $3}' | sed 's/"//g')"
|
||||
if [ -z "${KRATA_VERSION}" ]
|
||||
then
|
||||
echo "ERROR: failed to determine krata version" > /dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "${KRATA_VERSION}"
|
Reference in New Issue
Block a user