diff --git a/src/clean-md5-cache b/src/clean-md5-cache index 4e60b27..daa7239 100755 --- a/src/clean-md5-cache +++ b/src/clean-md5-cache @@ -34,7 +34,7 @@ if [ -d "${cache}" ] then if ! rm -fr "${cache}" then - sudo rm -fr "${cache}" || exit 1 + su root -c "rm -fr ${cache}" || exit 1 fi else echo "No pre-generated md5-cache found in ${cache}" diff --git a/src/eball b/src/eball index 70a6b0f..5007680 100755 --- a/src/eball +++ b/src/eball @@ -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