mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
refactor: enhance version display logic in installation scripts to read from .env file
This commit is contained in:
parent
0fd1d37ed4
commit
533519b343
2 changed files with 4 additions and 6 deletions
|
|
@ -299,11 +299,8 @@ Y88b d88P Y88b 888 888 888 Y88b d88P Y8b. 888 888 X88 Y8b.
|
|||
|
||||
|
||||
EOF
|
||||
if [[ "${SURFSENSE_VERSION:-latest}" == "latest" ]]; then
|
||||
_version_display="latest"
|
||||
else
|
||||
_version_display="v${SURFSENSE_VERSION}"
|
||||
fi
|
||||
_version_display=$(grep '^SURFSENSE_VERSION=' "${INSTALL_DIR}/.env" 2>/dev/null | cut -d= -f2 | tr -d '"' | head -1 || true)
|
||||
_version_display="${_version_display:-latest}"
|
||||
printf " Your personal AI-powered search engine ${YELLOW}[%s]${NC}\n" "${_version_display}"
|
||||
printf "${CYAN}══════════════════════════════════════════════════════════════${NC}\n\n"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue