aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/dependencies5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/dependencies b/bin/dependencies
index 7cf3b90..4330730 100755
--- a/bin/dependencies
+++ b/bin/dependencies
@@ -16,6 +16,11 @@ DEVELOP_DEPENDENCIES="git mr whois hiera-eyaml"
# Set sudo config
if [ "`whoami`" != 'root' ]; then
SUDO="sudo"
+
+ if ! sudo -n true; then
+ echo "Please set passwordless sudo."
+ exit 1
+ fi
fi
# Install a package, thanks to the Hydra Suite.