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
4 changes: 3 additions & 1 deletion scripts/sparc2/install-deno.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ case $OS in
# Check if .bashrc or .zshrc exists and add Deno to PATH
if [ -f "$HOME/.bashrc" ]; then
echo -e "${YELLOW}Adding Deno to PATH in .bashrc${NC}"
echo "" >> "$HOME/.bashrc"
echo 'export DENO_INSTALL="$HOME/.deno"' >> "$HOME/.bashrc"
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> "$HOME/.bashrc"
fi

if [ -f "$HOME/.zshrc" ]; then
echo -e "${YELLOW}Adding Deno to PATH in .zshrc${NC}"
echo "" >> "$HOME/.zshrc"
echo 'export DENO_INSTALL="$HOME/.deno"' >> "$HOME/.zshrc"
echo 'export PATH="$DENO_INSTALL/bin:$PATH"' >> "$HOME/.zshrc"
fi
Expand All @@ -78,4 +80,4 @@ else
echo -e "${RED}Failed to install Deno automatically.${NC}"
echo -e "${YELLOW}Please install Deno manually from https://deno.land/#installation${NC}"
exit 1
fi
fi