Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/tcframe
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ version() {
exit 1
fi

# Change to tcframe directory to ensure git command work correctly
cd "$TCFRAME_HOME" || {
echo "Error: Cannot access TCFRAME_HOME directory: $TCFRAME_HOME"
exit 1
}

# Get the most recent tag and strip the 'v' prefix
TAG=$(git describe --tags --abbrev=0 2>/dev/null | sed 's/^v//')

Expand Down