shr-txt.sh
This commit is contained in:
parent
cb3433e93c
commit
911b60b792
6
shr-txt.sh
Executable file
6
shr-txt.sh
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Share a text file to shrlok.
|
||||||
|
cat <(printf '{"type":"txt"}\0') "$1" \
|
||||||
|
| socat - UNIX-CONNECT:/run/shrlok/shr.sock \
|
||||||
|
| sed 's|/var/www/files|https://files.dece.space|' \
|
||||||
|
; echo
|
|
@ -1,2 +0,0 @@
|
||||||
#!/usr/bin/env python3
|
|
||||||
|
|
Reference in a new issue