Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error (fix included) #87

Closed
mipapo opened this issue Feb 2, 2016 · 0 comments
Closed

Syntax error (fix included) #87

mipapo opened this issue Feb 2, 2016 · 0 comments

Comments

@mipapo
Copy link

mipapo commented Feb 2, 2016

pohl@dv123:~/tmp/ghettoVCB$ ./ghettoVCB.sh 
./ghettoVCB.sh: Zeile 1326: Syntaxfehler im bedingten Ausdruck: Unerwartetes Zeichen `;'.
./ghettoVCB.sh: Zeile 1326: Syntaxfehler beim unerwarteten Wort `;'
./ghettoVCB.sh: Zeile 1326: `    if [[ "${EMAIL_LOG}" -eq 1 ]] || [[ "${EMAIL_ALERT}" -eq 1]] ; then'

pohl@dv123:~/tmp/ghettoVCB$ git diff ghettoVCB.sh
diff --git a/ghettoVCB.sh b/ghettoVCB.sh
index f641500..fbf4f2a 100755
--- a/ghettoVCB.sh
+++ b/ghettoVCB.sh
@@ -1323,7 +1323,7 @@ buildHeaders() {

 sendMail() {
     #close email message
-    if [[ "${EMAIL_LOG}" -eq 1 ]] || [[ "${EMAIL_ALERT}" -eq 1]] ; then
+    if [ "${EMAIL_LOG}" -eq 1 ] || [ "${EMAIL_ALERT}" -eq 1] ; then
         SMTP=1
         #validate firewall has email port open for ESXi 5
         if [[ "${VER}" == "5" ]] || [[ "${VER}" == "6" ]] ; then
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants