Skip to content

Commit

Permalink
Returned nested launch
Browse files Browse the repository at this point in the history
Returned nested launch via sudo
  • Loading branch information
lunardunno authored Mar 3, 2025
1 parent 0932f50 commit e0ad25b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/server_scripts/check_user_in_sudo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ fi;\
CUR_USER=$(whoami 2>/dev/null || echo ~ | sed 's/.*\///');\
echo $LANG | grep -qE '^(en_US.UTF-8|C.UTF-8|C)$' || export LC_ALL=C;\
if [ "$CUR_USER" = "root" ] || ( groups "$CUR_USER" | grep -E '\<(sudo|wheel)\>' ); then \
sudo -K && sudo -n $pm $opt > /dev/null;\
sudo -K && sudo -nu $CUR_USER $pm $opt > /dev/null && sudo -n $pm $opt > /dev/null;\
fi

0 comments on commit e0ad25b

Please sign in to comment.