diff options
Diffstat (limited to 'publish')
-rwxr-xr-x | publish | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -75,6 +75,8 @@ OPTIONS: -h Show this message. -n no-do. Just print what would have been done. -q Produce a QR code. + -r Add --relative option to rsync so that path names of the given + files are preserved at the remote host. -x Publish the contents of the xclipboard. EOF } @@ -114,7 +116,7 @@ do_screenshot=0 make_qrcode=0 add_default_cs=0 -while getopts "hnq8HSxs:" OPTION +while getopts "rhnq8HSxs:" OPTION do case $OPTION in h) @@ -148,6 +150,9 @@ do s) name_stdin="$OPTARG" ;; + r) + rsync_args="${rsync_args} --relative" + ;; *) usage >&2 exit 1 |