simplify
This commit is contained in:
parent
fa22309405
commit
c0587ba50b
7
hedgebak
7
hedgebak
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user