diff options
-rwxr-xr-x | bin/kill-ssh-and-umount | 7 | ||||
-rwxr-xr-x | bin/sync-for-dionysus | 2 |
2 files changed, 8 insertions, 1 deletions
diff --git a/bin/kill-ssh-and-umount b/bin/kill-ssh-and-umount new file mode 100755 index 00000000..ccb8e3e0 --- /dev/null +++ b/bin/kill-ssh-and-umount @@ -0,0 +1,7 @@ +#!/bin/sh + +. "$HOME/.shenv" + +# TODO +# lsof $1 | grep ssh | cut -d' ' -f +sudo umount $1 diff --git a/bin/sync-for-dionysus b/bin/sync-for-dionysus index 6be27cbc..c0095470 100755 --- a/bin/sync-for-dionysus +++ b/bin/sync-for-dionysus @@ -21,7 +21,7 @@ else cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex add && git annex sync --content || true cd "$HOME/lib/dionysus" && git annex add && git annex sync --content athena # try to sync nickflash again - cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex sync --content && sudo umount /media/swhitton/SPWHITTON || true + cd /media/swhitton/SPWHITTON/doc 2>/dev/null && git annex sync --content && kill-ssh-and-umount /media/swhitton/SPWHITTON || true athena_cmd lib/dionysus "git annex merge" athena_cmd doc "mr sync" |