Skip to content

setup fails if $HOME/.bashrc does not have a new line at the end of the file #12

Open
@bablokb

Description

@bablokb

When adding to $HOME/.bashrc, you must insure that you add your lines on a new line. My .bashrc did not have a newline at the very last line, resulting in garbage:

. $HOME/.profileexport PICO_SDK_PATH=/data/pico/pico-sdk
export PICO_EXAMPLES_PATH=/data/pico/pico-examples
export PICO_EXTRAS_PATH=/data/pico/pico-extras
export PICO_PLAYGROUND_PATH=/data/pico/pico-playground

Which should acutally read

. $HOME/.profile
export PICO_SDK_PATH=/data/pico/pico-sdk
export PICO_EXAMPLES_PATH=/data/pico/pico-examples
export PICO_EXTRAS_PATH=/data/pico/pico-extras
export PICO_PLAYGROUND_PATH=/data/pico/pico-playground

As soon as the setup-script sources the modified .bashrc, the script bails out because of the "error" on the first line

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