Remove dumb confirmation on sudo
This commit is contained in:
parent
4b2609a1ed
commit
9fded49e9d
6
vpm
6
vpm
|
@ -151,11 +151,7 @@ version () {
|
||||||
rootcheck () {
|
rootcheck () {
|
||||||
if [[ $EUID -gt 0 ]]; then
|
if [[ $EUID -gt 0 ]]; then
|
||||||
msg "$progname: This operation needs super-user privileges."
|
msg "$progname: This operation needs super-user privileges."
|
||||||
read -p "Elevate (Y/n)? " yn
|
SUDO=sudo
|
||||||
case "$yn" in
|
|
||||||
n*|N*) exit 255 ;;
|
|
||||||
*) SUDO=sudo ;;
|
|
||||||
esac
|
|
||||||
else
|
else
|
||||||
SUDO=''
|
SUDO=''
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue