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