From a4a5a3c0b808efcc6f05cfd293158d09c0b3338c Mon Sep 17 00:00:00 2001 From: Tharre Date: Wed, 6 Mar 2019 18:03:01 +0100 Subject: output_capture: use curl directly instead of pbpst --- bin/capture_output | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/capture_output b/bin/capture_output index 8645f3f..4195ae6 100755 --- a/bin/capture_output +++ b/bin/capture_output @@ -1,10 +1,5 @@ #!/bin/bash -e -if ! [ -x "$(command -v pbpst)" ]; then - echo 'Error: pbpst is not installed' >&2 - exit 1 -fi - if [ $# -eq 0 ]; then echo 'Error: no arguments supplied' >&2 exit 1 @@ -12,4 +7,4 @@ fi # sed removes all of the coloring, and (hopefully) all the other escape # sequences that col doesn't deal with well. -script -qfe >(sed 's:\x1B\[[0-9;?]*[mKJl]::g; 1d; $d' | col -bx | pbpst -S -x1d) -c "$*" +script -qfe >(sed 's:\x1B\[[0-9;?]*[mKJl]::g; 1d; $d' | col -bx | curl -F sunset=604800 -F c=@- "https://ptpb.pw/") -c "$*" -- cgit v1.2.3-70-g09d2