Explorar o código

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

Sean %!s(int64=6) %!d(string=hai) anos
pai
achega
c3521ba749
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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