summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAlex Yang <yangyang1@zte.com.cn>2017-10-10 17:54:23 +0800
committerAlex Yang <yangyang1@zte.com.cn>2017-10-10 17:54:23 +0800
commit60db76fd8cad19fae6cfcf2fbf3b30fa2c4c707f (patch)
tree343092695e8aabea0122b4f2691e57aded30d65d /utils
parent93a0b352d15a82c80bdc1719dd24d9e0fd1a7821 (diff)
Fix jenkins-jnlp-connect.sh for missing a quotation mark
Change-Id: Iba2a7b5de9cb56c2cc6579fb9ff37b3242a0283f Signed-off-by: Alex Yang <yangyang1@zte.com.cn>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/jenkins-jnlp-connect.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/jenkins-jnlp-connect.sh b/utils/jenkins-jnlp-connect.sh
index 13cb025d6..cd81f29d3 100755
--- a/utils/jenkins-jnlp-connect.sh
+++ b/utils/jenkins-jnlp-connect.sh
@@ -52,7 +52,7 @@ main () {
fi
if [[ $(whoami) != "root" ]]; then
- if sudo -l | grep "requiretty | grep -v "\!requiretty"; then
+ if sudo -l | grep "requiretty" | grep -v "\!requiretty"; then
echo "please comment out Defaults requiretty from /etc/sudoers"
exit 1
fi