fix(herdr-workspace): synchronize herdr runtime workspace label on spawn and resume
This commit is contained in:
1 parent
d2cdc3f8cd
commit
fc8ca88107
2 files changed
+11
-1
No files matched your search
@@ -63,6 +63,12 @@ else
|
||||
export HERDR_SESSION_NAME
|
||||
fi
|
||||
|
||||
if [ -n "$HERDR_WORKSPACE_OPT" ]; then
|
||||
export MAM_WS_LABEL="$HERDR_WORKSPACE_OPT"
|
||||
else
|
||||
export MAM_WS_LABEL="$(resolve_herdr_workspace "$SESSION_NAME" "$WORKSPACE")"
|
||||
fi
|
||||
|
||||
# 2. If herdr is alive, print warning or attach.
|
||||
if herdr has-session -t "$SESSION_NAME" 2>/dev/null; then
|
||||
if [ "${DRY_RUN:-0}" = "1" ]; then
|
||||
|
||||
Reference in new issue
Block a user