From: Nicolas Boisselier Date: Thu, 8 Sep 2016 19:02:10 +0000 (+0200) Subject: bin/owncloud-sync X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=8ab600cc835975ea365f2506fcfcd135b45686ff;p=nb.git bin/owncloud-sync --- diff --git a/bin/owncloud-sync b/bin/owncloud-sync index 66b7f378..8472851a 100755 --- a/bin/owncloud-sync +++ b/bin/owncloud-sync @@ -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 }