From 6e5fed29628386a9ee07f28ce18b4de72534fcb6 Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wouter.deconinck@umanitoba.ca> Date: Sat, 23 Oct 2021 18:30:49 +0000 Subject: [PATCH] Avoid unbound variable error when PS1 unset --- containers/jug/setup_detectors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/containers/jug/setup_detectors.py b/containers/jug/setup_detectors.py index d26648cce..a12e78e83 100755 --- a/containers/jug/setup_detectors.py +++ b/containers/jug/setup_detectors.py @@ -21,6 +21,7 @@ export JUGGLER_BEAMLINE_CONFIG_VERSION=$BEAMLINE_CONFIG_VERSION export JUGGLER_INSTALL_PREFIX=/usr/local ## modify PS1 for this detector version +export PS1="${{PS1}}" export PS1="{branch}${{PS1_SIGIL}}>${{PS1#*>}}" unset branch ''' -- GitLab