From 1e4d4a806a0c33622f7ec85a4570f3ae5a00dc74 Mon Sep 17 00:00:00 2001 From: DarkFeather Date: Wed, 11 Sep 2024 16:27:55 -0500 Subject: [PATCH] Adding weechat group to profile --- EtcFiles/profile.d/shadowarch-user-weechat.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EtcFiles/profile.d/shadowarch-user-weechat.sh b/EtcFiles/profile.d/shadowarch-user-weechat.sh index a69b584..d3431a2 100644 --- a/EtcFiles/profile.d/shadowarch-user-weechat.sh +++ b/EtcFiles/profile.d/shadowarch-user-weechat.sh @@ -3,6 +3,7 @@ # * Weechat is installed # * User doesn't have a running weechat process # * User isn't root -if [[ $- == *i* ]] && [ -f `which weechat` ] && [ `ps -u $USER | grep -c weechat` -eq 0 ] && [ $USER != 'root' ]; then +# * User is in the weechat group +if [[ $- == *i* ]] && [ -f `which weechat` ] && [ `ps -u $USER | grep -c weechat` -eq 0 ] && [ $USER != 'root' ] && [[ "$(id)" =~ weechat ]]; then weechat; fi