install_easy: full chmod pervertion surive

This commit is contained in:
bol-van
2023-11-19 17:27:02 +03:00
parent 62562bf727
commit 1681de60cf
2 changed files with 8 additions and 2 deletions

View File

@@ -5,8 +5,8 @@ require_root()
[ $(id -u) -ne "0" ] && {
echo root is required
exe="$EXEDIR/$(basename "$0")"
exists sudo && exec sudo "$exe"
exists su && exec su root -c "$exe"
exists sudo && exec sudo sh "$exe"
exists su && exec su root -c "sh \"$exe\""
echo su or sudo not found
exitp 2
}