Jelajahi Sumber

Merge pull request #1525 from Shigbeard/develop

Fixed PushBullet alerts duping strings, see #1524.
Daniel Gibbs 9 tahun lalu
induk
melakukan
a8da56b7c2
1 mengubah file dengan 3 tambahan dan 4 penghapusan
  1. 3 4
      lgsm/functions/alert_pushbullet.sh

+ 3 - 4
lgsm/functions/alert_pushbullet.sh

@@ -24,12 +24,11 @@ fn_rawurlencode() {
      esac
      encoded+="${o}"
   done
-  echo "${encoded}"    # You can either set a return variable (FASTER)
-  REPLY="${encoded}"   #+or echo the result (EASIER)... or both... :p
+  echo "${encoded}"    # If echo is faster, let's just echo it.
 }
 
-pbalertbody=$(fn_rawurlencode "${alertbody}"; echo ${REPLY})
-pbalertsubject=$(fn_rawurlencode "${alertsubject}"; echo ${REPLY})
+pbalertbody=$(fn_rawurlencode "${alertbody}")
+pbalertsubject=$(fn_rawurlencode "${alertsubject}")
 
 fn_print_dots "Sending Pushbullet alert"
 sleep 1