Skip to content

Commit 9be3aeb

Browse files
committed
find-inactive-ssh-sessions.sh whitespace
1 parent 967ed07 commit 9be3aeb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/find-inactive-ssh-sessions.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ if [ "$UNMET" -gt 0 ]; then
8282
fi
8383

8484
# Get TTYs with the seconds since the last access time
85+
8586
TTYS=$(
8687
who -s \
8788
| awk '{ print $2 }' \
@@ -99,6 +100,7 @@ TTY_AGES=$(
99100
)
100101

101102
# Print header
103+
102104
if (( KILL == 1 )); then
103105
echo "Killing sshd processes idle more than $MAX_IDLE seconds." >&2
104106
else
@@ -111,6 +113,7 @@ fi
111113
echo "" >&2
112114

113115
# Get sshd processes of the TTYs; list or kill (-k)
116+
114117
while IFS= read -r line ; do
115118
user=$(echo "$line" | awk '{print $1}')
116119
tty=$(echo "$line" | awk '{print $2}')

0 commit comments

Comments
 (0)