feat: display version information in the banner

This commit is contained in:
zurdi
2025-07-21 11:47:12 +00:00
parent cafd32e20d
commit 270758ba69

View File

@@ -29,6 +29,8 @@ CYAN='\033[0;36m'
RESET='\033[0;00m'
print_banner() {
local version
version=$(python3 -c "exec(open('__version__.py').read()); print(__version__)")
info_log " _____ __ __ "
info_log ' | __ \ | \/ |'
info_log ' | |__) |___ _ __ ___ | \ / |'
@@ -38,6 +40,8 @@ print_banner() {
info_log ""
info_log "The beautiful, powerful, self-hosted Rom manager and player"
info_log ""
info_log "Version: ${version}"
info_log ""
}
debug_log() {
@@ -212,11 +216,11 @@ shutdown() {
stop_process_pid valkey-server
}
print_banner
# switch to backend directory
cd /backend || { error_log "/backend directory doesn't seem to exist"; }
print_banner
# setup trap handler
exited=0
trap 'exited=1 && shutdown' SIGINT SIGTERM EXIT