Bob Mottram 7 лет назад
Родитель
Сommit
c4b091c281
1 измененных файлов: 3 добавлений и 3 удалений
  1. 3
    3
      src/freedombone-app-bdsmail

+ 3
- 3
src/freedombone-app-bdsmail Просмотреть файл

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