diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-15 11:33:26 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-02-15 11:33:26 -0700 |
commit | 3c8370e94fce75145694d029ee58bc22277b2803 (patch) | |
tree | 051b938896fc6f7f11193f6e24a5694ca9f4ac32 /bin/get-sdf-mail | |
parent | ee7cd0fba998b2448134a6001c658b8413aa9c37 (diff) | |
download | dotfiles-3c8370e94fce75145694d029ee58bc22277b2803.tar.gz |
get-sdf-mail: rely on set -e
Diffstat (limited to 'bin/get-sdf-mail')
-rwxr-xr-x | bin/get-sdf-mail | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/get-sdf-mail b/bin/get-sdf-mail index 3ab91dec..1bc9ab4d 100755 --- a/bin/get-sdf-mail +++ b/bin/get-sdf-mail @@ -10,7 +10,4 @@ ssh spw@tty.sdf.org mv /var/mail/spw /sdf/arpa/ns/s/spw/tmp/mbox.$uuid scp spw@tty.sdf.org:tmp/mbox.$uuid $HOME/tmp/mbox.$uuid mb2md -s $HOME/tmp/mbox.$uuid -d $HOME/.fmail/inbox ssh sdf rm tmp/mbox.$uuid -echo "I: after confirming the insert succeeded, rm ~/tmp/mbox.$uuid" - -# TODO ask user to confirm number of messages inserted (mb2md prints -# this number) and then if they answer yes, delete the local copy +rm $HOME/tmp/mbox.$uuid |