From 5fcddfcbe4677fae57a6b697d08724fe8e2214f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Erbsh=C3=A4u=C3=9Fer?= Date: Sun, 7 Jun 2026 15:14:06 +0200 Subject: [PATCH] exclude cookie file from blog articles --- tesoft.bash | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tesoft.bash b/tesoft.bash index 2d1059a..46009e3 100755 --- a/tesoft.bash +++ b/tesoft.bash @@ -1,6 +1,6 @@ #!/bin/sh -cookie_path=./cookies.txt +cookie_path=cookies.txt print_help() { echo "tesoft.dev helper script" @@ -64,7 +64,7 @@ upload() { exit 1 fi - tar -C "$1" -cf /tmp/article.tar $(ls "$1") + tar -C "$1" --exclude=$cookie_path -cf /tmp/article.tar $(ls "$1") out=$(curl -v -f -X PUT -F "file=@/tmp/article.tar" "$URL/api/blog" -b "$cookie_path" 2>&1) if [ $? -ne 0 ]; then echo "$out" >&2 @@ -88,7 +88,7 @@ patch() { exit 1 fi - tar -C "$2" -cf /tmp/article.tar $(ls "$2") + tar -C "$2" --exclude=$cookie_path -cf /tmp/article.tar $(ls "$2") out=$(curl -v -f -X PATCH -F "file=@/tmp/article.tar" "$URL/api/blog/$1" -b "$cookie_path" 2>&1) if [ $? -ne 0 ]; then echo "$out" >&2