Check output
This commit is contained in:
parent
c0587ba50b
commit
aa41f5cc98
2
hedgebak
2
hedgebak
|
@ -38,8 +38,10 @@ fi
|
||||||
|
|
||||||
while read id; do
|
while read id; do
|
||||||
outfile=`HEDGEDOC_SERVER="$SERVER" HEDGEDOC_COOKIES_FILE="$COOKIE_FILE" hedgedoc export --md "$id"`
|
outfile=`HEDGEDOC_SERVER="$SERVER" HEDGEDOC_COOKIES_FILE="$COOKIE_FILE" hedgedoc export --md "$id"`
|
||||||
|
if [ "$?" == "0" ]; then
|
||||||
echo "$outfile"
|
echo "$outfile"
|
||||||
git add "$outfile"
|
git add "$outfile"
|
||||||
|
fi
|
||||||
done < "$ID_FILE"
|
done < "$ID_FILE"
|
||||||
|
|
||||||
DATE=`date --utc +"%Y%m%d_%H%M"`
|
DATE=`date --utc +"%Y%m%d_%H%M"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user