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"` SERVER=`cat "$SERVER_FILE"`
HEDGEDOC_COOKIES_FILE="" if [ ! -f "$COOKIE_FILE" ]; then
if [ -f "$COOKIE_FILE" ]; then $COOKIE_FILE=""
HEDGEDOC_COOKIES_FILE="$COOKIE_FILE"
fi fi
if [ ! -f "$ID_FILE" ]; then if [ ! -f "$ID_FILE" ]; then
@ -38,7 +37,7 @@ if [ ! -f "$ID_FILE" ]; then
fi fi
while read id; do 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" echo "$outfile"
git add "$outfile" git add "$outfile"
done < "$ID_FILE" done < "$ID_FILE"