From 4a3f6374f30cb4e5dc112dc4581b86b9922c6fcb Mon Sep 17 00:00:00 2001 From: Maximilian Friedersdorff Date: Thu, 13 Sep 2018 14:28:23 +0100 Subject: [PATCH] Do not start mutt if password could not be retrieved --- aber_offline_mail/.local/bin/aber_mutt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/aber_offline_mail/.local/bin/aber_mutt b/aber_offline_mail/.local/bin/aber_mutt index 4c50459..0d5ca26 100755 --- a/aber_offline_mail/.local/bin/aber_mutt +++ b/aber_offline_mail/.local/bin/aber_mutt @@ -40,6 +40,11 @@ touch $PASS_FILE chown max:max $PASS_FILE chmod 600 $PASS_FILE pass Aber/Main | head -n 1 > $PASS_FILE +if [[ "${PIPESTATUS[0]}" -ne 0 ]]; then + echo "Password not available" + exit +fi + sync_mailboxes_loop& >> $LOG 2>&1 echo $! > $PID -- 2.47.1