print sudo command to check failures

This commit is contained in:
Girish Ramakrishnan
2020-06-29 14:03:34 -07:00
parent d47b83a63b
commit 85b4f2dbdd

View File

@@ -28,7 +28,7 @@ scripts=("${SOURCE_DIR}/src/scripts/clearvolume.sh" \
for script in "${scripts[@]}"; do
if [[ $(sudo -n "${script}" --check 2>/dev/null) != "OK" ]]; then
echo ""
echo "${script} does not have sudo access."
echo "${script} does not have sudo access. Try 'sudo -n ${script} --check'"
echo "You have to add the lines below to /etc/sudoers.d/yellowtent"
echo ""
echo "Defaults!${script} env_keep=\"HOME BOX_ENV\""