]> git.p6c8.net - jirafeau_mojo42.git/commitdiff
Merge branch 'linkname' into 'master'
authorJérôme <mojo@couak.net>
Sat, 5 Mar 2016 11:31:02 +0000 (11:31 +0000)
committerJérôme <mojo@couak.net>
Sat, 5 Mar 2016 11:31:02 +0000 (11:31 +0000)
Add direct link in bash script + link title

Hi,

Another small patch to make things more user friendly :)

See merge request !12

script.php

index 620d70d157e52c6d87839d19ffb1b5f5b653acee..3e6668e36c2b56c4896188dd4cb615ffe28f8722 100644 (file)
@@ -350,7 +350,11 @@ if [ "$1" == "send" ]; then
         fi
         cnt=$(( cnt + 1 ))
         done)
+    echo "Download link:"
     echo "${url}?h=$code"
+    echo "Direct download link:"
+    echo "${url}?h=$code&d=1"
+    echo "Delete link:"
     echo "${url}?h=$code&d=$del_code"
 elif [ "$1" == "get" ]; then
     if [ -z "$password" ]; then

patrick-canterino.de