From 0276209ad400c448525a9475701b89fcf14b5c56 Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 29 Aug 2021 14:15:47 +0200 Subject: cyberlocker-tools: make path optional for upload --- krebs/5pkgs/simple/cyberlocker-tools/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'krebs/5pkgs/simple/cyberlocker-tools') diff --git a/krebs/5pkgs/simple/cyberlocker-tools/default.nix b/krebs/5pkgs/simple/cyberlocker-tools/default.nix index 420acb192..80593bcae 100644 --- a/krebs/5pkgs/simple/cyberlocker-tools/default.nix +++ b/krebs/5pkgs/simple/cyberlocker-tools/default.nix @@ -4,7 +4,7 @@ pkgs.symlinkJoin { paths = [ (pkgs.writers.writeDashBin "cput" '' set -efu - path=$1 + path=''${1:-$(hostname)} ${pkgs.curl}/bin/curl -Ss --data-binary @- "http://c.r/$path" echo "http://c.r/$path" -- cgit v1.2.3