unm-debug 742 B

1234567891011121314151617
  1. #!/bin/sh
  2. # Copyright (C) 2021-2022 Tianling Shen <[email protected]>
  3. command -v "curl" >"/dev/null" || { echo -e "curl is not found."; exit 1; }
  4. RUN_DIR="/var/run/unblockneteasemusic"
  5. mkdir -p "$RUN_DIR"
  6. /usr/share/unblockneteasemusic/debugging.sh 2>&1 | tee "$RUN_DIR/unm-debugging-output.txt"
  7. catbox_link="$(curl -fsS -F "reqtype=fileupload" -F "time=72h" -F "fileToUpload=@$RUN_DIR/unm-debugging-output.txt" "https://litterbox.catbox.moe/resources/internals/api.php")"
  8. transfer_link="$(curl -fsS --upload-file "$RUN_DIR/unm-debugging-output.txt" "https://transfer.sh/unm-debugging-output.txt")"
  9. echo -e "\n"
  10. echo -e "Log is available at:"
  11. echo -e "$catbox_link"
  12. echo -e "$transfer_link"
  13. rm -f "$RUN_DIR/unm-debugging-output.txt"