Skip to content

Fix copy-logo.sh to work from any directory - #8

Merged
pmca31 merged 2 commits into
build-octofit-appfrom
copilot/sub-pr-2-please-work
Feb 11, 2026
Merged

Fix copy-logo.sh to work from any directory#8
pmca31 merged 2 commits into
build-octofit-appfrom
copilot/sub-pr-2-please-work

Conversation

Copilot AI commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

The copy-logo.sh script failed when executed from outside octofit-tracker/frontend/ because it relied on relative paths without ensuring correct working directory.

Changes

  • Added cd "$(dirname "$0")" to navigate to script's directory before executing copy commands
  • Matches pattern already used in setup.sh
#!/bin/bash

# Copy OctoFit logo for use in the frontend
# Navigate to script directory to ensure relative paths work correctly
cd "$(dirname "$0")"

echo "Copying OctoFit logo files..."
# ... copy commands using relative paths

The script now executes correctly regardless of caller's working directory.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: pmca31 <6774003+pmca31@users.noreply.github.com>
Copilot AI changed the title [WIP] Address feedback on registration validation and activities update Fix copy-logo.sh to work from any directory Feb 11, 2026
Copilot AI requested a review from pmca31 February 11, 2026 19:31
@pmca31
pmca31 marked this pull request as ready for review February 11, 2026 19:47
@pmca31
pmca31 merged commit e319987 into build-octofit-app Feb 11, 2026
@pmca31
pmca31 deleted the copilot/sub-pr-2-please-work branch February 11, 2026 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants