This commit is contained in:
gutmet 2022-12-04 23:33:05 +01:00
parent fa22309405
commit c0587ba50b

View File

@ -27,9 +27,8 @@ fi
SERVER=`cat "$SERVER_FILE"`
HEDGEDOC_COOKIES_FILE=""
if [ -f "$COOKIE_FILE" ]; then
HEDGEDOC_COOKIES_FILE="$COOKIE_FILE"
if [ ! -f "$COOKIE_FILE" ]; then
$COOKIE_FILE=""
fi
if [ ! -f "$ID_FILE" ]; then
@ -38,7 +37,7 @@ if [ ! -f "$ID_FILE" ]; then
fi
while read id; do
outfile=`HEDGEDOC_SERVER="$SERVER" HEDGEDOC_COOKIES_FILE="$HEDGEDOC_COOKIES_FILE" hedgedoc export --md "$id"`
outfile=`HEDGEDOC_SERVER="$SERVER" HEDGEDOC_COOKIES_FILE="$COOKIE_FILE" hedgedoc export --md "$id"`
echo "$outfile"
git add "$outfile"
done < "$ID_FILE"