From 8ab600cc835975ea365f2506fcfcd135b45686ff Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Thu, 8 Sep 2016 21:02:10 +0200 Subject: [PATCH] bin/owncloud-sync --- bin/owncloud-sync | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } -- 2.47.3