cyberlocker-tools: pass fail

This commit is contained in:
lassulus 2021-08-31 19:26:37 +02:00
parent 8104c74120
commit 1ac0608fc5

View File

@ -6,14 +6,14 @@ pkgs.symlinkJoin {
set -efu
path=''${1:-$(hostname)}
${pkgs.curl}/bin/curl -Ss --data-binary @- "http://c.r/$path"
${pkgs.curl}/bin/curl -fSs --data-binary @- "http://c.r/$path"
echo "http://c.r/$path"
'')
(pkgs.writers.writeDashBin "cdel" ''
set -efu
path=$1
${pkgs.curl}/bin/curl -X DELETE "http://c.r/$path"
${pkgs.curl}/bin/curl -f -X DELETE "http://c.r/$path"
'')
];
}