My build of nnn with minor changes
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

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