Sfoglia il codice sorgente

Fix static analysis failures

Bob Mottram 7 anni fa
parent
commit
c4b091c281
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3
    3
      src/freedombone-app-bdsmail

+ 3
- 3
src/freedombone-app-bdsmail Vedi File

125
             sed -i "s|set smtp_url=.*|set smtp_url=smtp://${curr_username}:${new_user_password}@127.0.0.1:$I2P_SMTP_PORT/" "/home/${USERNAME}/.mutt/bdsmail"
125
             sed -i "s|set smtp_url=.*|set smtp_url=smtp://${curr_username}:${new_user_password}@127.0.0.1:$I2P_SMTP_PORT/" "/home/${USERNAME}/.mutt/bdsmail"
126
             sed -i "s|set from=.*|set from=${USERNAME}@$(bdsmail_domain)|g" "/home/${USERNAME}/.mutt/bdsmail"
126
             sed -i "s|set from=.*|set from=${USERNAME}@$(bdsmail_domain)|g" "/home/${USERNAME}/.mutt/bdsmail"
127
             chown "${USERNAME}":"${USERNAME}" "/home/${USERNAME}/.mutt/bdsmail"
127
             chown "${USERNAME}":"${USERNAME}" "/home/${USERNAME}/.mutt/bdsmail"
128
-            cd $BDSMAIL_DIR
128
+            cd $BDSMAIL_DIR || exit 2468246
129
             $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini "$curr_username" "/home/$curr_username/Maildir/i2p" "$new_user_password"
129
             $BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini "$curr_username" "/home/$curr_username/Maildir/i2p" "$new_user_password"
130
         fi
130
         fi
131
     done
131
     done
319
     if [ -d /repos/bdsmail ]; then
319
     if [ -d /repos/bdsmail ]; then
320
         mkdir $BDSMAIL_DIR
320
         mkdir $BDSMAIL_DIR
321
         cp -r -p /repos/bdsmail/. $BDSMAIL_DIR
321
         cp -r -p /repos/bdsmail/. $BDSMAIL_DIR
322
-        cd $BDSMAIL_DIR
322
+        cd $BDSMAIL_DIR || exit 24687246
323
         git pull
323
         git pull
324
     else
324
     else
325
         git_clone "$BDSMAIL_REPO" "$BDSMAIL_DIR"
325
         git_clone "$BDSMAIL_REPO" "$BDSMAIL_DIR"
330
         exit 5735735
330
         exit 5735735
331
     fi
331
     fi
332
 
332
 
333
-    cd $BDSMAIL_DIR
333
+    cd $BDSMAIL_DIR || exit 2468246
334
     git checkout "$BDSMAIL_COMMIT" -b "$BDSMAIL_COMMIT"
334
     git checkout "$BDSMAIL_COMMIT" -b "$BDSMAIL_COMMIT"
335
     set_completion_param "bdsmail commit" "$BDSMAIL_COMMIT"
335
     set_completion_param "bdsmail commit" "$BDSMAIL_COMMIT"
336
 
336