mirror of
https://github.com/Pakobbix/passive-income.git
synced 2025-11-09 14:59:40 +00:00
take only the last active user from open session list
This commit is contained in:
parent
f82e067869
commit
9d3b26ba51
@ -48,7 +48,7 @@ sudo echo
|
|||||||
if ! which whiptail >/dev/null; then
|
if ! which whiptail >/dev/null; then
|
||||||
sudo apt-get install whiptail -y
|
sudo apt-get install whiptail -y
|
||||||
fi
|
fi
|
||||||
linux_user=$(who | awk '{print $1}')
|
linux_user=$(w | awk '{print $1}' | tail -n1)
|
||||||
{
|
{
|
||||||
echo 0
|
echo 0
|
||||||
sudo apt-get update >/dev/null
|
sudo apt-get update >/dev/null
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user