Skip to content

Commit 421f0cd

Browse files
committed
fix kill_session_prompt.sh
Script doesn't process non-zero exit codes producing artifact messages on the screen. fix `kill_session_prompt.sh`
1 parent a315c42 commit 421f0cd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/kill_session_prompt.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,9 @@ CURRENT_SESSION_ID="$2"
88

99
main() {
1010
tmux confirm -p "kill-session ${CURRENT_SESSION_NAME}? (y/n)" "run '$CURRENT_DIR/kill_session.sh \'$CURRENT_SESSION_ID''"
11+
12+
if [ $? -ne 0 ]; then
13+
return # do nothing
14+
fi
1115
}
1216
main

0 commit comments

Comments
 (0)