diff options
author | lassulus <lassulus@lassul.us> | 2021-08-29 14:15:47 +0200 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-08-29 14:15:47 +0200 |
commit | 0276209ad400c448525a9475701b89fcf14b5c56 (patch) | |
tree | 19a574f29f7803503056330f03d4daded409630f /krebs | |
parent | 3c35eca7e892a43c1d2874311c504afc3dc6146e (diff) |
cyberlocker-tools: make path optional for upload
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/5pkgs/simple/cyberlocker-tools/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
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" |