From 14a0d6f448f26d187b80c85730fdb0151241bd69 Mon Sep 17 00:00:00 2001 From: xer0dayz <1N3@hushmail.com> Date: Mon, 12 Jan 2026 12:43:36 -0700 Subject: [PATCH] Redirect errors for last command to /dev/null --- sniper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sniper b/sniper index e1d25b1..c1dd860 100755 --- a/sniper +++ b/sniper @@ -464,7 +464,7 @@ function init { service postgresql start 2> /dev/null > /dev/null msfdb start 2> /dev/null > /dev/null chown root /run/user/1000/gdm/Xauthority 2> /dev/null - LAST_USER=$(last | head -n 1 | awk '{print $1}') + LAST_USER=$(last 2> /dev/null | head -n 1 | awk '{print $1}') sudo cp -a /home/$LAST_USER/.Xauthority /root/.Xauthority 2> /dev/null sudo cp -a /root/.Xauthority /root/.Xauthority.bak 2> /dev/null sudo cp -a /home/$USER/.Xauthority /root/.Xauthority 2> /dev/null