src: use su instead of sudo
Signed-off-by: Maciej Barć <xgqt@protonmail.com>
This commit is contained in:
parent
ba34796215
commit
c518cd0023
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user