cyberlocker-tools: make path optional for upload
This commit is contained in:
parent
3c35eca7e8
commit
0276209ad4
|
@ -4,7 +4,7 @@ pkgs.symlinkJoin {
|
||||||
paths = [
|
paths = [
|
||||||
(pkgs.writers.writeDashBin "cput" ''
|
(pkgs.writers.writeDashBin "cput" ''
|
||||||
set -efu
|
set -efu
|
||||||
path=$1
|
path=''${1:-$(hostname)}
|
||||||
|
|
||||||
${pkgs.curl}/bin/curl -Ss --data-binary @- "http://c.r/$path"
|
${pkgs.curl}/bin/curl -Ss --data-binary @- "http://c.r/$path"
|
||||||
echo "http://c.r/$path"
|
echo "http://c.r/$path"
|
||||||
|
|
Loading…
Reference in a new issue