fix dbd logic error
authorIan Kelling <iank@fsf.org>
Tue, 17 Mar 2020 16:44:52 +0000 (12:44 -0400)
committerIan Kelling <iank@fsf.org>
Tue, 17 Mar 2020 16:44:52 +0000 (12:44 -0400)
pdt.sh

diff --git a/pdt.sh b/pdt.sh
index 25a7f318aefa3694da38e63c05e82f140cce1454..6c44b774f45b286294dde49f6079c0976435e8f4 100644 (file)
--- a/pdt.sh
+++ b/pdt.sh
@@ -116,7 +116,7 @@ pdt() {
   if ! toot -$mastodon_account post "$*" $toot_arg; then
     fails+=(toot)
   fi
   if ! toot -$mastodon_account post "$*" $toot_arg; then
     fails+=(toot)
   fi
-  if [[ ! $dbd ]]; then
+  if ! $dbd; then
     if ! printf "post %s\n" "${dia_arg}$*" | diaspora; then
       fails+=(diaspora)
     fi
     if ! printf "post %s\n" "${dia_arg}$*" | diaspora; then
       fails+=(diaspora)
     fi