cyberlocker-tools: pass fail
This commit is contained in:
parent
8104c74120
commit
1ac0608fc5
@ -6,14 +6,14 @@ pkgs.symlinkJoin {
|
|||||||
set -efu
|
set -efu
|
||||||
path=''${1:-$(hostname)}
|
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"
|
echo "http://c.r/$path"
|
||||||
'')
|
'')
|
||||||
(pkgs.writers.writeDashBin "cdel" ''
|
(pkgs.writers.writeDashBin "cdel" ''
|
||||||
set -efu
|
set -efu
|
||||||
path=$1
|
path=$1
|
||||||
|
|
||||||
${pkgs.curl}/bin/curl -X DELETE "http://c.r/$path"
|
${pkgs.curl}/bin/curl -f -X DELETE "http://c.r/$path"
|
||||||
'')
|
'')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user