Skip to content
Permalink
Browse files

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

  • Loading branch information...
ip2k authored and dgibbs64 committed Aug 28, 2019
1 parent 0e6a926 commit c3521ba749daae1fc9ecaa3290dc22e6b7ca2d3e
Showing with 6 additions and 0 deletions.
  1. +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

0 comments on commit c3521ba

Please sign in to comment.
You can’t perform that action at this time.