summaryrefslogtreecommitdiff
path: root/publish
diff options
context:
space:
mode:
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