diff options
author | Peter Palfrader <peter@palfrader.org> | 2009-12-05 14:30:30 +0000 |
---|---|---|
committer | weasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede> | 2009-12-05 14:30:30 +0000 |
commit | c92a99ce8289697e89ce1ff5e2634d11adfdc7cf (patch) | |
tree | e2c7284b9193b0976dee47b0ba05ea7dfd9784a7 | |
parent | d9d0e5bcf66cf4ddb7e25c3c2c2b0acd1dc28e34 (diff) |
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
-rwxr-xr-x | publish | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |