From a8c08c9d9fe9ead5a005de237d114cef178a693d Mon Sep 17 00:00:00 2001 From: jrobgood Date: Sun, 30 Mar 2025 17:12:39 -0700 Subject: [PATCH] Update install-deno.sh The deno.land installer seems to need a CRLF... consider this brute-force fix perhaps? --- scripts/sparc2/install-deno.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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