mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
helpers2.1: remove boring edge case in ynh_exec_as checking if asking to run as root..?
This commit is contained in:
parent
8ad3a3bc6f
commit
a123149bef
1 changed files with 1 additions and 6 deletions
|
@ -180,10 +180,5 @@ ynh_system_user_delete() {
|
|||
ynh_exec_as() {
|
||||
local user=$1
|
||||
shift 1
|
||||
|
||||
if [[ $user = $(whoami) ]]; then
|
||||
eval "$@"
|
||||
else
|
||||
sudo -u "$user" "$@"
|
||||
fi
|
||||
sudo -u "$user" "$@"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue