summaryrefslogtreecommitdiffstats
path: root/krebs/5pkgs/simple/kpaste
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-06-05 10:31:17 +0200
committermakefu <github@syntax-fehler.de>2020-06-05 10:31:17 +0200
commitbed170dd8a8ca5ba4c9109fc858dc658f90df68c (patch)
tree0915cfc5c1b3e0d85802f081b22794b9c73ba3d5 /krebs/5pkgs/simple/kpaste
parentfa5f65ee7695b5742ec83b852e6e5a7f749a3428 (diff)
pkgs.kpaste: paste either stdin or file from parameter
Diffstat (limited to 'krebs/5pkgs/simple/kpaste')
-rw-r--r--krebs/5pkgs/simple/kpaste/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/krebs/5pkgs/simple/kpaste/default.nix b/krebs/5pkgs/simple/kpaste/default.nix
index 217cb8a44..02f482316 100644
--- a/krebs/5pkgs/simple/kpaste/default.nix
+++ b/krebs/5pkgs/simple/kpaste/default.nix
@@ -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/}'
''