projects
/
dotfiles
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9595c5
)
Autocommit of file /home/julien/scripts/autosync-xdg-launcher.sh changed on host...
author
Julien Valroff
<julien@kirya.net>
Sat, 5 Nov 2011 16:01:55 +0000
(17:01 +0100)
committer
Julien Valroff
<julien@kirya.net>
Sat, 5 Nov 2011 16:01:55 +0000
(17:01 +0100)
autosync-xdg-launcher.sh
patch
|
blob
|
history
diff --git
a/autosync-xdg-launcher.sh
b/autosync-xdg-launcher.sh
index
ecd88e7
..
6450f74
100755
(executable)
--- a/
autosync-xdg-launcher.sh
+++ b/
autosync-xdg-launcher.sh
@@
-4,6
+4,12
@@
conf=${XDG_CONF_HOME:-$HOME/.config}/autosync
data=${XDG_DATA_HOME:-$HOME/.local/share}/autosync
mkdir -p $data/log
+
+# Automatically delete logs older than 5 days
+find $data/log/ -name '*.log' -ctime 5 -delete
+
+# Only starts configuration files ending with .conf
+# which makes it easy to disable some
for i in $conf/*.conf
do
pkill -f "python.*dvcs-autosync .*autosync/$(basename $i)"