Skip to content

Install script prepends literal "\n" text in .bashrc instead of a newline #51

@mkvalor

Description

@mkvalor

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions