Update pushbullet.sh

This commit is contained in:
neil 2021-10-03 22:33:41 +08:00 committed by GitHub
parent 20f604948f
commit f2958818c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ pushbullet_send() {
_saveaccountconf_mutable PUSHBULLET_TOKEN "$PUSHBULLET_TOKEN" _saveaccountconf_mutable PUSHBULLET_TOKEN "$PUSHBULLET_TOKEN"
PUSHBULLET_DEVICE="${PUSHBULLET_DEVICE:-$(_readaccountconf_mutable PUSHBULLET_DEVICE)}" PUSHBULLET_DEVICE="${PUSHBULLET_DEVICE:-$(_readaccountconf_mutable PUSHBULLET_DEVICE)}"
if [ -z "$PUSHBULLET_DEVICE" ]; then if [ -z "$PUSHBULLET_DEVICE" ]; then
_clearaccountconf_mutable PUSHBULLET_DEVICE _clearaccountconf_mutable PUSHBULLET_DEVICE
else else
_saveaccountconf_mutable PUSHBULLET_DEVICE "$PUSHBULLET_DEVICE" _saveaccountconf_mutable PUSHBULLET_DEVICE "$PUSHBULLET_DEVICE"