]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
fix: code style in notify.sh
authorBastian Dehn <hhaalo@arcor.de>
Sat, 18 Nov 2017 14:00:32 +0000 (15:00 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 18 Nov 2017 14:00:32 +0000 (15:00 +0100)
notify.sh

index 81263a29fca78f9df80c3921b20765c1fe550216..2155243251bfacc63ee12c86b187b3d78eea601b 100755 (executable)
--- a/notify.sh
+++ b/notify.sh
@@ -18,24 +18,21 @@ else
 fi
 
 # send email to notify user
-sendEmail()
-{
-if [ $NOTIFY == true ]; then
-       sendemail -f $FROMADDRESS -t $TOADDRESS \
+sendEmail() {
+       if [ $NOTIFY == true ]; then
+               sendemail -f $FROMADDRESS -t $TOADDRESS \
 -s $SMTP -xu $SMTPUSERNAME -xp $(echo $SMTPPASSWORD | base64 --decode) -o tls=yes \
 -u "albentohandy" -o message-content-type=html -m "$MESSAGE"
-fi
+       fi
 }
 
 # add current date in message
-currentDate()
-{
+currentDate() {
        MESSAGE="${MESSAGE}$(date +"%Y-%m-%d %H:%M:%S") "
 }
 
 # open html, header and body
-openMail()
-{
+openMail() {
        MESSAGE="<html>\n \
 <head>\n \
 <title>albentohandy.sh notify</title>\n \
@@ -44,14 +41,12 @@ openMail()
 }
 
 # write message
-addInfo()
-{
+addInfo() {
        MESSAGE="${MESSAGE}$1\n"
 }
 
 # close body andy html
-closeMail()
-{
+closeMail() {
        MESSAGE="${MESSAGE}\n \
 </body>\n \
 </html>\n"