pkgs.kpaste: paste either stdin or file from parameter
This commit is contained in:
parent
fa5f65ee76
commit
bed170dd8a
@ -1,6 +1,6 @@
|
||||
{ curl, gnused, writeDashBin }:
|
||||
|
||||
writeDashBin "kpaste" ''
|
||||
${curl}/bin/curl -sS http://p.r --data-binary @- |
|
||||
${gnused}/bin/sed '$ {p;s/\<r\>/krebsco.de/}'
|
||||
${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" |
|
||||
${gnused}/bin/sed '$ {p;s/\<http://p.r\>/krebsco.de/}'
|
||||
''
|
||||
|
Loading…
Reference in New Issue
Block a user