From 305532db0246b04655cc12dcd5332b71438f76f1 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Fri, 24 Jun 2022 17:16:44 +0100 Subject: [PATCH] CCv0: Fix PS1 unbound error export PS1, so it is bound Fixes: #4531 Signed-off-by: stevenhorsman --- docs/how-to/ccv0.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/how-to/ccv0.sh b/docs/how-to/ccv0.sh index 5206980c39..e5d6614d83 100755 --- a/docs/how-to/ccv0.sh +++ b/docs/how-to/ccv0.sh @@ -37,6 +37,8 @@ export PROFILE="${HOME}/.profile" if [ -r "${HOME}/.bash_profile" ]; then export PROFILE="${HOME}/.bash_profile" fi +# Stop PS1: unbound variable error happening +export PS1=${PS1:-} # Create a bunch of common, derived values up front so we don't need to create them in all the different functions . ${PROFILE}