mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 04:30:13 -08:00
fix: Update .env file download source from gist to git repository
This commit is contained in:
@@ -37,9 +37,9 @@ echo -e "\n${BLUE}Configuring Fabric with external AI providers...${NC}"
|
||||
# Create Fabric config directory if it doesn't exist
|
||||
mkdir -p ~/.config/fabric
|
||||
|
||||
# Download the pre-configured .env file from gist
|
||||
echo -e "${YELLOW}Downloading Fabric .env configuration from gist...${NC}"
|
||||
GIST_URL="https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028/raw/HEAD/fabric-env"
|
||||
# Download the pre-configured .env file from git repository
|
||||
echo -e "${YELLOW}Downloading Fabric .env configuration from git repository...${NC}"
|
||||
GIST_URL="https://git.ptrwd.com/peterwood/config/raw/branch/main/fabric/.env"
|
||||
|
||||
if curl -s "$GIST_URL" -o ~/.config/fabric/.env; then
|
||||
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}"
|
||||
fi
|
||||
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
|
||||
cat > ~/.config/fabric/.env << 'EOF'
|
||||
@@ -77,7 +77,7 @@ else
|
||||
DEFAULT_MODEL=gpt-4o-mini
|
||||
|
||||
# For complete provider list, see:
|
||||
# https://gist.ptrwd.com/acedanger/7d564d3f611e4bab88004c15c2d30028
|
||||
# https://git.ptrwd.com/peterwood/config/raw/branch/main/fabric/.env
|
||||
EOF
|
||||
chmod 600 ~/.config/fabric/.env
|
||||
echo -e "${YELLOW}✓ Basic .env template created${NC}"
|
||||
|
||||
Reference in New Issue
Block a user