diff options
Diffstat (limited to 'bin/capture_output')
-rwxr-xr-x | bin/capture_output | 7 |
1 files changed, 1 insertions, 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 "$*" |