[ros-users] [Discourse.ros.org] [Quality Assurance] sudo usa…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Felix Ruess via ros-users
Date:  
To: ros-users
CC: Felix Ruess
Subject: [ros-users] [Discourse.ros.org] [Quality Assurance] sudo usage in rosdistro packages


A compromise could be to add a check if already running with super user rights to the scripts, something like

```# if not run as root, use sudo
if [[ $EUID -ne 0 ]]; then
SUDO="sudo"
else
SUDO=""
fi

$SUDO command

```





---
[Visit Topic](https://discourse.ros.org/t/sudo-usage-in-rosdistro-packages/7188/5) or reply to this email to respond.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>