Quellcode durchsuchen

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

Sean vor 6 Jahren
Ursprung
Commit
c3521ba749
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  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