Skip to content

Commit 9288db2

Browse files
Merge pull request #912 from samskillman/fix/undefined-ramble-python
Protect RAMBLE_PYTHON from unbound variable errors
2 parents d3a41a6 + 3448933 commit 9288db2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

share/ramble/setup-env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,10 +309,10 @@ if [ "$_rmb_shell" = bash ]; then
309309
fi
310310

311311
# Identify and lock the python interpreter
312-
if [ -n "$RAMBLE_PYTHON" ]; then
312+
if [ -n "${RAMBLE_PYTHON:-}" ]; then
313313
echo "The RAMBLE_PYTHON environment variable is set to $RAMBLE_PYTHON"
314314
echo "Will pin the python binary ramble uses to this value".
315-
if [ -n "$_RAMBLE_PYTHON" ]; then
315+
if [ -n "${_RAMBLE_PYTHON:-}" ]; then
316316
if [ "$RAMBLE_PYTHON" != "$_RAMBLE_PYTHON" ]; then
317317
echo "WARNING: Ramble was previously pinned to use $_RAMBLE_PYTHON"
318318
echo " If this is not what you want, set the correct python"

0 commit comments

Comments
 (0)