Commit 04c84ab1 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

CodiMD backup: Ensure warning visibility when rendered

parent f2835095
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -11,9 +11,11 @@ export CODIMD_SERVER='https://codimd.tiker.net'
$CODIMD login --email inform+codibackup@tiker.net "$CODIMD_PASSWORD"
while read -r DOCID FILEPATH; do
    echo "Reading note $DOCID into $FILEPATH"
    echo "<!-- DO NOT EDIT -->" > "$FILEPATH"
    echo "<!-- THIS FILE WILL BE OVERWRITTEN AUTOMATICALLY -->" >> "$FILEPATH"
    echo "<!-- INSTEAD, EDIT THE FILE AT ${CODIMD_SERVER}/${DOCID} -->" >> "$FILEPATH"
    echo "**DO NOT EDIT**" > "$FILEPATH"
    echo "This file will be automatically overwritten. " >> "$FILEPATH"
    echo "Instead, edit the file at ${CODIMD_SERVER}/${DOCID} " >> "$FILEPATH"
    echo "**DO NOT EDIT**" > "$FILEPATH"
    echo "" > "$FILEPATH"
    $CODIMD export --md "$DOCID" "-" >> "$FILEPATH"
    git add "$FILEPATH"
done < .codimd-backup.txt