summaryrefslogtreecommitdiffhomepage
path: root/make-tar.sh
diff options
context:
space:
mode:
Diffstat (limited to 'make-tar.sh')
-rw-r--r--make-tar.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/make-tar.sh b/make-tar.sh
index 82afd67e..9d1af1f3 100644
--- a/make-tar.sh
+++ b/make-tar.sh
@@ -14,10 +14,9 @@ then
case "$USER,$(uname -s)" in
# for the script see https://github.com/andreafabrizi/Dropbox-Uploader
sthalik,CYGWIN_*)
- set -x
dropbox_uploader.sh -p upload "$filename" /
- l="$(dropbox_uploader.sh -q share "/$filename")"
- set +x
+ bn="$(basename -- "$filename")"
+ l="$(dropbox_uploader.sh -q share /"$bn")"
test -n "$l" && echo -n "$l" | putclip
echo $l
echo -ne '\a' ;;