My build of nnn with minor changes
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 
 

17 lignes
460 B

  1. #!/usr/bin/env sh
  2. # Description: Upload a file to transfer.sh
  3. #
  4. # Shell: POSIX compliant
  5. # Author: Arun Prakash Jana
  6. if ! [ -z "$1" ]; then
  7. # Upload the file, show the download link and wait till user presses any key
  8. curl -s --upload-file "$1" https://transfer.sh/`basename "$1"`
  9. echo
  10. read input
  11. # To write download link to "$1".loc and exit
  12. # curl -s --upload-file "$1" https://transfer.sh/`basename "$1"` -o `basename "$1"`.loc
  13. fi