Added sudo as a dependency

This commit is contained in:
Ben Haines 2021-10-20 08:23:47 +01:00 committed by GitHub
parent 9a3019223b
commit bc764d2942
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -324,7 +324,7 @@ elif [ ! -z "$SUDO_USER" ]; then
abort "This script will ask for sudo as necessary, but you should not run it as sudo. Please try again."
fi
for req in wget git; do
for req in wget git sudo; do
if ! hash $req 2>/dev/null; then
install $req
fi