krebspaste: print public URL

This commit is contained in:
tv 2019-04-13 22:01:13 +02:00
parent a224e77dfb
commit 3214a47d45

View File

@ -1,6 +1,12 @@
{ writeDashBin, bepasty-client-cli }: { bepasty-client-cli, gnused, writeDashBin }:
# TODO use `pkgs.exec` instead?
writeDashBin "krebspaste" '' writeDashBin "krebspaste" ''
exec ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" | sed '$ s/$/\/+inline/g' ${bepasty-client-cli}/bin/bepasty-cli -L 1m --url http://paste.r "$@" |
${gnused}/bin/sed '
$ {
s/$/\/+inline/
p
s/\<r\>/krebsco.de/
}
'
'' ''