From a436b6ff925ea0007fa6c7195a083bcaefb48255 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Wed, 16 Jun 2021 12:59:33 +0200 Subject: [PATCH] Update script to actually work --- pubspace.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pubspace.sh b/pubspace.sh index c2884ac..93e4c3f 100644 --- a/pubspace.sh +++ b/pubspace.sh @@ -1,7 +1,9 @@ -#!/bin/sh +#!/bin/bash + +FILE="$1" /usr/bin/curl \ -H "Content-Type: application/json" \ -X GET \ - -d '{"username":"xyz","password":"xyz"}' \ + -d "{\"file\":\"${FILE}\"}" \ https://publish.lumbung.space