summaryrefslogtreecommitdiff
path: root/bin/get-sdf-mail
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-02-15 11:33:26 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-02-15 11:33:26 -0700
commit3c8370e94fce75145694d029ee58bc22277b2803 (patch)
tree051b938896fc6f7f11193f6e24a5694ca9f4ac32 /bin/get-sdf-mail
parentee7cd0fba998b2448134a6001c658b8413aa9c37 (diff)
downloaddotfiles-3c8370e94fce75145694d029ee58bc22277b2803.tar.gz
get-sdf-mail: rely on set -e
Diffstat (limited to 'bin/get-sdf-mail')
-rwxr-xr-xbin/get-sdf-mail5
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