]> git.nbdom.net Git - nb.git/commitdiff
bin/owncloud-sync
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 8 Sep 2016 19:02:10 +0000 (21:02 +0200)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Thu, 8 Sep 2016 19:02:10 +0000 (21:02 +0200)
bin/owncloud-sync

index 66b7f378e553915106578b4ca0eae80d71d7439c..8472851a904314760ef5db56df4683e57441a0c4 100755 (executable)
@@ -106,7 +106,10 @@ owncloud_sync() {
   fi
 
   trap "rm $lock*" EXIT
-  owncloudcmd -n --non-interactive "$1" "$2" 2>&1 | perl -ne 'print "$1 $2 $3\n" and next if /OCC::(\S+).*?"(.*?)" "(.*?)"/;'
+  #owncloudcmd -n --non-interactive "$1" "$2" 2>&1 | perl -ne 'print  if s/^!!!\s*OCC:://'
+  #owncloudcmd -n --non-interactive "$1" "$2" 2>&1 | perl -ne 'print join(" ",@_)."\n" and next if @_=/OCC::(\S+).*?"(.*?)" "(.*?)"/;'
+  owncloudcmd -n --non-interactive "$1" "$2" 2>&1 | \
+    perl -ne 'printf("%s %-10s %s\n",$2,$1,$3) if /OCC::(.*?) created for "(.*?)" . "(.*?)" "(.*?)"/'
 
   return 0
 }