src: use su instead of sudo

Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
Maciej Barć
2021-01-29 20:05:50 +01:00
parent ba34796215
commit c518cd0023
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ do
if [ "$(whoami)" != root ] && [ -z "${EPREFIX}" ]
then
echo "Switching to the root account"
sudo ebuild "${ebuild}" clean test merge
su root -c "ebuild ${ebuild} clean test merge"
else
ebuild "${ebuild}" clean test merge
fi