more fixes and polish, inching closer to release
This commit is contained in:
@@ -122,8 +122,9 @@ function messagePTS() {
|
||||
fi
|
||||
|
||||
for pts in $(ls -q /dev/pts); do
|
||||
echo -e "\n\npts $pts\ntty: $(tty)\n\n";
|
||||
if [[ $pts =~ '^[0-9]+$' ]] && [[ "/dev/pts/$pts" != "$(tty)" ]]; then
|
||||
echo -e "\n\npts running $pts\ntty running: $(tty)\n\n";
|
||||
|
||||
sudo echo -e "$message" > /dev/pts/$pts # requires passwordless sudo
|
||||
writeToLog "PTS Message: $message send to /dev/$pts"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user