diff options
Diffstat (limited to 'publish')
-rwxr-xr-x | publish | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -81,6 +81,7 @@ OPTIONS: -r Add --relative option to rsync so that path names of the given files are preserved at the remote host. -t days time to live in days + -T tag directory name on the server (use this to re-publish under that name) -x Publish the contents of the xclipboard. EOF } @@ -121,7 +122,7 @@ make_qrcode=0 add_default_cs=0 relative="" -while getopts "rhnq8HSxs:t:" OPTION +while getopts "rhnq8HSxs:t:T:" OPTION do case $OPTION in h) @@ -161,6 +162,9 @@ do t) ttl="$OPTARG" ;; + T) + d_server="$OPTARG" + ;; *) usage >&2 exit 1 @@ -217,7 +221,7 @@ fi d_date=$(date +"$date_format") d_random=$(get_random) -d_server="$d_date$d_random" +d_server="${d_server:-$d_date$d_random}" d_server_http_base=$( echo -n "$d_server" | uri_encode ) base_uri="$base_http/$d_server_http_base/" |