My build of nnn with minor changes
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 
 
 
 
 

17 řádky
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