diff --git a/scripts/sparc2/install-deno.sh b/scripts/sparc2/install-deno.sh index 0665201..bb20d6c 100755 --- a/scripts/sparc2/install-deno.sh +++ b/scripts/sparc2/install-deno.sh @@ -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 @@ -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 \ No newline at end of file +fi