From c92a99ce8289697e89ce1ff5e2634d11adfdc7cf Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 5 Dec 2009 14:30:30 +0000 Subject: When publishing a single dir, the printed path was wrong git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@431 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- publish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'publish') diff --git a/publish b/publish index 964d40b..45aeb25 100755 --- a/publish +++ b/publish @@ -170,17 +170,18 @@ while [ "$#" -gt 0 ]; do shift uri="$base_http/$d_server_http_base/$( echo -n "`basename $file`" | uri_encode )" - echo "$uri" - history_append "$uri" trail="" if [ "$only_one" = 1 ]; then if [ -d "$file" ]; then trail="/" + uri="$base_http/$d_server_http_base/" fi echo -n "$uri" | xclip fi + echo "$uri" + history_append "$uri" $NODO rsync $rsync_args "$file$trail" $base_rsync"/$d_server/" done -- cgit v1.2.3