Fix static analysis failures

This commit is contained in:
Bob Mottram 2018-03-02 19:39:00 +00:00
parent 087115fa23
commit c4b091c281
1 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ function change_password_bdsmail {
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"
sed -i "s|set from=.*|set from=${USERNAME}@$(bdsmail_domain)|g" "/home/${USERNAME}/.mutt/bdsmail"
chown "${USERNAME}":"${USERNAME}" "/home/${USERNAME}/.mutt/bdsmail"
cd $BDSMAIL_DIR
cd $BDSMAIL_DIR || exit 2468246
$BDSMAIL_DIR/bin/mailtool $BDSMAIL_DIR/config.ini "$curr_username" "/home/$curr_username/Maildir/i2p" "$new_user_password"
fi
done
@ -319,7 +319,7 @@ function install_bdsmail {
if [ -d /repos/bdsmail ]; then
mkdir $BDSMAIL_DIR
cp -r -p /repos/bdsmail/. $BDSMAIL_DIR
cd $BDSMAIL_DIR
cd $BDSMAIL_DIR || exit 24687246
git pull
else
git_clone "$BDSMAIL_REPO" "$BDSMAIL_DIR"
@ -330,7 +330,7 @@ function install_bdsmail {
exit 5735735
fi
cd $BDSMAIL_DIR
cd $BDSMAIL_DIR || exit 2468246
git checkout "$BDSMAIL_COMMIT" -b "$BDSMAIL_COMMIT"
set_completion_param "bdsmail commit" "$BDSMAIL_COMMIT"