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