Skip to content

Commit 091a95e

Browse files
authored
fix kill_session_prompt.sh
Script doesn't process non-zero exit codes producing artifact messages on the screen.
1 parent a315c42 commit 091a95e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/kill_session_prompt.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,10 @@ 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+
# do nothing
14+
return
15+
fi
1116
}
1217
main

0 commit comments

Comments
 (0)