Remove dumb confirmation on sudo

This commit is contained in:
Case Duckworth 2019-07-19 20:52:57 -05:00
parent 4b2609a1ed
commit 9fded49e9d
1 changed files with 1 additions and 5 deletions

6
vpm
View File

@ -151,11 +151,7 @@ version () {
rootcheck () {
if [[ $EUID -gt 0 ]]; then
msg "$progname: This operation needs super-user privileges."
read -p "Elevate (Y/n)? " yn
case "$yn" in
n*|N*) exit 255 ;;
*) SUDO=sudo ;;
esac
SUDO=sudo
else
SUDO=''
fi