]> git.rmz.io Git - dotfiles.git/commitdiff
mbsync: only execute .hook files
authorSamir Benmendil <me@rmz.io>
Thu, 1 Mar 2018 19:13:00 +0000 (19:13 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 3 Mar 2018 21:08:20 +0000 (21:08 +0000)
isync/post-sync.d/10-youtube.hook [moved from isync/post-sync.d/10-youtube with 100% similarity]
isync/sync-mail

index ef2ef45903bb9fdb9e9b8f29810c6f4e377efb73..e9cf8d9ac773958ca0ec2abacb1ce344c7c6f363 100755 (executable)
@@ -5,14 +5,14 @@ mbsync_args="$*"
 export dir="$(dirname "${BASH_SOURCE[0]}")"
 export config=$dir/config
 
-for hook in $(find $dir/pre-sync.d -type f -executable); do
+for hook in $(find $dir/pre-sync.d -type f -name '*.hook' -executable); do
     "$hook" $mbsync_args
 done
 
 mbsync -c "$config" $mbsync_args
 export mbsync_errno=$?
 
-for hook in $(find $dir/post-sync.d -type f -executable); do
+for hook in $(find $dir/post-sync.d -type f -name '*.hook' -executable); do
     "$hook" $mbsync_args
 done