Check output
This commit is contained in:
parent
c0587ba50b
commit
aa41f5cc98
6
hedgebak
6
hedgebak
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user