14 lines
351 B
Bash
Executable File
14 lines
351 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#ok so this script should take an argument of an image and posts it
|
|
|
|
#add blob
|
|
blobID=$(cat $1 | ssb-server blobs.add)
|
|
|
|
#echo $blobID
|
|
|
|
#publish blob
|
|
#key=$(ssb-server publish --type post --text "![upload.bmp($blobID)]"
|
|
|
|
ssb-server publish --type post --text "" --mentions.0.name photo.bmp --mentions.0.type image/bmp
|