My build of nnn with minor changes
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

17 lines
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