Update version to 2.0.1 and make version reading dynamic

This commit is contained in:
2025-03-05 00:31:42 +00:00
parent d08820c9c6
commit bd55ef8613
3 changed files with 9 additions and 5 deletions

View File

@@ -15,7 +15,8 @@ NC='\033[0m' # No Color
# Print header
echo -e "${BOLD}==================================================${NC}"
echo -e "${BOLD} Transmission RSS Manager Installer ${NC}"
echo -e "${BOLD} Version 2.0.0 - Git Edition ${NC}"
VERSION=$(grep -oP '"version": "\K[^"]+' "${SCRIPT_DIR}/package.json" 2>/dev/null || echo "Unknown")
echo -e "${BOLD} Version ${VERSION} - Git Edition ${NC}"
echo -e "${BOLD}==================================================${NC}"
echo