Files
omarchycn/bin/omarchy-cn-version
T

14 lines
308 B
Bash
Executable File

#!/bin/bash
# omarchy:summary=Show the OmarchyCN version
# omarchy:examples=omarchycn version
set -euo pipefail
OMARCHY_BIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
ROOT="${OMARCHY_BIN_DIR%/bin}"
upstream=$(<"$ROOT/version")
release=$(<"$ROOT/cn/release")
echo "${upstream}-cn.${release}"