Check output

This commit is contained in:
gutmet 2022-12-09 20:53:17 +01:00
parent c0587ba50b
commit aa41f5cc98

View File

@ -38,8 +38,10 @@ fi
while read id; do
outfile=`HEDGEDOC_SERVER="$SERVER" HEDGEDOC_COOKIES_FILE="$COOKIE_FILE" hedgedoc export --md "$id"`
echo "$outfile"
git add "$outfile"
if [ "$?" == "0" ]; then
echo "$outfile"
git add "$outfile"
fi
done < "$ID_FILE"
DATE=`date --utc +"%Y%m%d_%H%M"`