cyberlocker-tools: make path optional for upload

This commit is contained in:
lassulus 2021-08-29 14:15:47 +02:00
parent 3c35eca7e8
commit 0276209ad4

View File

@ -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"