sync: auto-sync from HOWARD-HOME at 2026-05-19 22:36:25
Author: Howard Enos Machine: HOWARD-HOME Timestamp: 2026-05-19 22:36:25
This commit is contained in:
@@ -22,13 +22,20 @@ TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S")
|
|||||||
|
|
||||||
echo -e "${GREEN}[OK]${NC} Starting ClaudeTools sync from $MACHINE at $TIMESTAMP"
|
echo -e "${GREEN}[OK]${NC} Starting ClaudeTools sync from $MACHINE at $TIMESTAMP"
|
||||||
|
|
||||||
# Navigate to ClaudeTools directory (check common locations)
|
# Navigate to ClaudeTools directory
|
||||||
for candidate in "$HOME/ClaudeTools" "/d/ClaudeTools" "D:/ClaudeTools" "/d/claudetools" "D:/claudetools" "C:/claudetools" "/c/claudetools"; do
|
# First check: are we already in the repo (or a subdirectory of it)?
|
||||||
if [ -d "$candidate" ]; then
|
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || true)
|
||||||
cd "$candidate"
|
if [ -n "$REPO_ROOT" ]; then
|
||||||
break
|
cd "$REPO_ROOT"
|
||||||
fi
|
else
|
||||||
done
|
# Fall back to known candidate paths
|
||||||
|
for candidate in "$HOME/ClaudeTools" "/d/ClaudeTools" "D:/ClaudeTools" "/d/claudetools" "D:/claudetools" "C:/claudetools" "/c/claudetools"; do
|
||||||
|
if [ -d "$candidate/.git" ]; then
|
||||||
|
cd "$candidate"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d ".git" ]; then
|
if [ ! -d ".git" ]; then
|
||||||
echo -e "${RED}[ERROR]${NC} Not in a git working tree"
|
echo -e "${RED}[ERROR]${NC} Not in a git working tree"
|
||||||
|
|||||||
Reference in New Issue
Block a user