Skip to content

Commit

Permalink
Fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
anishathalye committed Aug 17, 2024
1 parent b0fe414 commit 06c91bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/tmx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ else
# Make sure we are not already in a tmux session
if [[ -z "$TMUX" ]]; then
# Kill defunct sessions first
old_sessions=$(tmux ls 2>/dev/null | egrep "^[0-9]{14}.*[0-9]+\)$" | cut -f 1 -d:)
old_sessions=$(tmux ls 2>/dev/null | grep -E "^[0-9]{14}.*[0-9]+\)$" | cut -f 1 -d:)
for old_session_id in $old_sessions; do
tmux kill-session -t $old_session_id
done
Expand Down

0 comments on commit 06c91bd

Please sign in to comment.