Dump _post() call output to /dev/null
Signed-off-by: Mike Beattie <mike@ethernal.org>
This commit is contained in:
parent
53d26e5c5c
commit
39b09f8f87
@ -38,7 +38,7 @@ telegram_send() {
|
|||||||
|
|
||||||
export _H1="Content-Type: application/json"
|
export _H1="Content-Type: application/json"
|
||||||
_telegram_bot_url="https://api.telegram.org/bot${TELEGRAM_BOT_APITOKEN}/sendMessage"
|
_telegram_bot_url="https://api.telegram.org/bot${TELEGRAM_BOT_APITOKEN}/sendMessage"
|
||||||
if _post "$_data" "$_telegram_bot_url"; then
|
if _post "$_data" "$_telegram_bot_url" > /dev/null; then
|
||||||
# shellcheck disable=SC2154
|
# shellcheck disable=SC2154
|
||||||
_message=$(printf "%s\n" "$response" | sed -n 's/.*"ok":\([^,]*\).*/\1/p')
|
_message=$(printf "%s\n" "$response" | sed -n 's/.*"ok":\([^,]*\).*/\1/p')
|
||||||
if [ "$_message" = "true" ]; then
|
if [ "$_message" = "true" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user