On my linux computer, when I run
curl -fsSL https://paperspace.com/install.sh | sh
my .bashrc is updated. However, this is the edit I find at the end of my .bashrc file:
\n# Paperspace
export PAPERSPACE_INSTALL="/home/mark/.paperspace"
export PATH="$PAPERSPACE_INSTALL/bin:$PATH"
source <(pspace completion bash)
Notice that the first line is prepended with the literal text "\n", which will result in a shell syntax error at runtime. I haven't yet looked at your source here, but if I had to guess, someone may have used the echo command for this line without also using the option -e which will interpret the literal "\n" as the newline character.