1fd30a15f4fa

mutt: kill offlineimap, dammit
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Wed, 03 Nov 2010 09:06:42 -0400
parents 866602df87e8
children d3e0c0c7ff37
branches/tags (none)
files mutt/offlineimapsync.sh mutt/offlineimapsyncquick.sh

Changes

--- a/mutt/offlineimapsync.sh	Tue Nov 02 15:25:42 2010 -0400
+++ b/mutt/offlineimapsync.sh	Wed Nov 03 09:06:42 2010 -0400
@@ -1,8 +1,6 @@
 #!/bin/sh
 
-PID=`/usr/local/bin/pgrep offlineimap`
-
-[[ -n "$PID" ]] && kill $PID
+kill `cat ~/.offlineimap/pid`
 
 /usr/local/bin/offlineimap -o -u Noninteractive.Quiet &>/dev/null &
 
--- a/mutt/offlineimapsyncquick.sh	Tue Nov 02 15:25:42 2010 -0400
+++ b/mutt/offlineimapsyncquick.sh	Wed Nov 03 09:06:42 2010 -0400
@@ -1,8 +1,7 @@
 #!/bin/sh
 
-PID=`/usr/local/bin/pgrep offlineimap`
 
-[[ -n "$PID" ]] && kill $PID
+kill `cat ~/.offlineimap/pid`
 
 /usr/local/bin/offlineimap -q -o -u Noninteractive.Quiet &>/dev/null &