fix: Update .env file download source from gist to git repository

This commit is contained in:
Peter Wood
2025-05-31 11:09:00 -04:00
parent f1ed75a6d4
commit e81d895630

View File

@@ -37,9 +37,9 @@ echo -e "\n${BLUE}Configuring Fabric with external AI providers...${NC}"
# Create Fabric config directory if it doesn't exist # Create Fabric config directory if it doesn't exist
mkdir -p ~/.config/fabric mkdir -p ~/.config/fabric
# Download the pre-configured .env file from gist # Download the pre-configured .env file from git repository
echo -e "${YELLOW}Downloading Fabric .env configuration from gist...${NC}" echo -e "${YELLOW}Downloading Fabric .env configuration from git repository...${NC}"
GIST_URL="https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028/raw/HEAD/fabric-env" GIST_URL="https://git.ptrwd.com/peterwood/config/raw/branch/main/fabric/.env"
if curl -s "$GIST_URL" -o ~/.config/fabric/.env; then if curl -s "$GIST_URL" -o ~/.config/fabric/.env; then
chmod 600 ~/.config/fabric/.env chmod 600 ~/.config/fabric/.env
@@ -53,7 +53,7 @@ if curl -s "$GIST_URL" -o ~/.config/fabric/.env; then
echo -e "${RED}⚠ Downloaded file appears to be empty${NC}" echo -e "${RED}⚠ Downloaded file appears to be empty${NC}"
fi fi
else else
echo -e "${RED}⚠ Could not download .env file from gist. Creating basic template...${NC}" echo -e "${RED}⚠ Could not download .env file from git repository. Creating basic template...${NC}"
# Create a basic .env template as fallback # Create a basic .env template as fallback
cat > ~/.config/fabric/.env << 'EOF' cat > ~/.config/fabric/.env << 'EOF'
@@ -77,7 +77,7 @@ else
DEFAULT_MODEL=gpt-4o-mini DEFAULT_MODEL=gpt-4o-mini
# For complete provider list, see: # For complete provider list, see:
# https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028 # https://git.ptrwd.com/peterwood/config/raw/branch/main/fabric/.env
EOF EOF
chmod 600 ~/.config/fabric/.env chmod 600 ~/.config/fabric/.env
echo -e "${YELLOW}✓ Basic .env template created${NC}" echo -e "${YELLOW}✓ Basic .env template created${NC}"