Procházet zdrojové kódy

feat(postdetails): add postdetails support for https://termbin.com (#2485)

Sean před 6 roky
rodič
revize
c3521ba749
1 změnil soubory, kde provedl 6 přidání a 0 odebrání
  1. 6 0
      lgsm/functions/command_postdetails.sh

+ 6 - 0
lgsm/functions/command_postdetails.sh

@@ -105,6 +105,12 @@ elif [ "${posttarget}" == "https://hastebin.com" ] ; then
 	fn_print_ok_nl "Posting details to hastebin.com for ${postexpire}"
 	pdurl="${posttarget}/${link}"
 	echo "  Please share the following url for support: ${pdurl}"
+elif [ "${posttarget}" == "https://termbin.com" ] ; then
+	fn_print_dots "Posting details to termbin.com"
+	link=$(cat "${postdetailslog}" | nc termbin.com 9999 | tr -d '\n\0')
+	fn_print_ok_nl "Posting details to termbin.com"
+	pdurl="${link}"
+	echo "  Please share the following url for support: ${pdurl}"
 else
 	 fn_print_warn_nl "Review output in: ${postdetailslog}"
 	 core_exit.sh