summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2009-12-05 14:30:30 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2009-12-05 14:30:30 +0000
commitc92a99ce8289697e89ce1ff5e2634d11adfdc7cf (patch)
treee2c7284b9193b0976dee47b0ba05ea7dfd9784a7 /publish
parentd9d0e5bcf66cf4ddb7e25c3c2c2b0acd1dc28e34 (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
Diffstat (limited to 'publish')
-rwxr-xr-xpublish5
1 files changed, 3 insertions, 2 deletions
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