Explorar o código

Merge pull request #1525 from Shigbeard/develop

Fixed PushBullet alerts duping strings, see #1524.
Daniel Gibbs %!s(int64=9) %!d(string=hai) anos
pai
achega
a8da56b7c2
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  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