diff options
author | Tharre <tharre3@gmail.com> | 2019-03-06 18:03:01 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-03-06 18:03:01 +0100 |
commit | a4a5a3c0b808efcc6f05cfd293158d09c0b3338c (patch) | |
tree | bd429d56965f59c61c62c9598630bd4d4ddc5d35 /bin | |
parent | 093d0dda0b7dbf1a43fd01c5e24b14e76e9a451f (diff) | |
download | dotfiles-a4a5a3c0b808efcc6f05cfd293158d09c0b3338c.tar.gz dotfiles-a4a5a3c0b808efcc6f05cfd293158d09c0b3338c.tar.xz dotfiles-a4a5a3c0b808efcc6f05cfd293158d09c0b3338c.zip |
output_capture: use curl directly instead of pbpst
Diffstat (limited to 'bin')
-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 "$*" |