diff --git a/scripts/update.sh b/scripts/update.sh index bb8ff83..6696585 100644 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -15,11 +15,12 @@ mkdir public cp -r src/* public rm public/*.* -# Descarga info de GitLab +# Descarga info de linkding curl --request GET \ -s -o $JSON \ -H "Authorization: Token $(<.token)" \ "https://linkding.cuates.net/api/bookmarks/?q=%23blog" +if [ "$?" != 0 ]; then exit 1; fi # Rehace sitio y JSON python3 ./scripts/make.py $JSON