Commit 6f9530b2 authored by David's avatar David
Browse files

Check for sudo in path before attempting to install it.

parent 8e386e56
......@@ -18,8 +18,8 @@ then
exit 1
fi
# Install sudo incase its not installed.
apt-get -y install sudo
# Check for sudo and install if not found in $path.
which sudo > /dev/null || apt-get -y install sudo
# Get sudo rights just in case
sudo -v
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment