~ubuntu-branches/ubuntu/vivid/cairo-dock-plug-ins/vivid

« back to all changes in this revision

Viewing changes to dnd2share/data/upload2free.sh

  • Committer: Matthieu Baerts
  • Date: 2013-08-27 14:46:47 UTC
  • mto: (53.1.4 cairo-dock-plug-ins)
  • mto: This revision was merged to the branch mainline in revision 44.
  • Revision ID: matttbe@gmail.com-20130827144647-wm0kyawa8vcg0cso
Tags: upstream-3.2.99.beta1.1~20130827~bzr2928
Import upstream version 3.2.99.beta1.1~20130827~bzr2928

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
### d'après un script posté par naholyr sur ubuntu-fr.org, adapte pour Cairo-Dock.
19
19
 
20
 
TMP=$(tempfile)
 
20
TMP=$(tempfile) # tool available in Debian packages
 
21
if test "$TMP" = ""; then
 
22
        TMP=$(mktemp) # /tmp/tmp.XXXXXXXXXX
 
23
        if test "$TMP" = ""; then
 
24
                TMP="/tmp/cairo_dock_curl_free"
 
25
        fi
 
26
fi
 
27
 
21
28
curl -q -v -T "$1" --limit-rate $2 -u cairo@dock.org:toto ftp://dl.free.fr/ 2> "$TMP"
22
29
 
23
30
if test $? -eq 0; then
26
33
                echo $URL
27
34
        fi
28
35
fi
29
 
#rm -f "$TMP"
 
36
rm -f "$TMP"
30
37
exit 0