From 692ec39144f13151ae2a098d779f7722092c44c1 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Fri, 26 Feb 2021 11:03:30 +0000 Subject: [PATCH 1/2] Write env-vars to ~/.profile instead of ~/.bashrc Fixes #13 --- pico_setup.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pico_setup.sh b/pico_setup.sh index 4a928d7..d11122d 100755 --- a/pico_setup.sh +++ b/pico_setup.sh @@ -68,18 +68,16 @@ do git submodule update --init cd $OUTDIR - # Define PICO_SDK_PATH in ~/.bashrc + # Define PICO_XXXX_PATH in ~/.profile VARNAME="PICO_${REPO^^}_PATH" - echo "Adding $VARNAME to ~/.bashrc" - echo "export $VARNAME=$DEST" >> ~/.bashrc + echo "Adding $VARNAME to ~/.profile" + echo "export $VARNAME=$DEST" >> ~/.profile export ${VARNAME}=$DEST fi done cd $OUTDIR -# Pick up new variables we just defined -source ~/.bashrc # Build a couple of examples cd "$OUTDIR/pico-examples" From 709c89b96fd2da48ed9fae0979a90063186837b4 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Fri, 12 Mar 2021 08:17:29 +0000 Subject: [PATCH 2/2] Add blank line to ~/.profile before adding our path-vars --- pico_setup.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pico_setup.sh b/pico_setup.sh index d11122d..83189fa 100755 --- a/pico_setup.sh +++ b/pico_setup.sh @@ -52,6 +52,9 @@ GITHUB_PREFIX="https://github.com/raspberrypi/" GITHUB_SUFFIX=".git" SDK_BRANCH="master" +# Add blank line to ~/.profile before adding our path-vars +echo "" >> ~/.profile + for REPO in sdk examples extras playground do DEST="$OUTDIR/pico-$REPO"