You are on page 1of 1

#echo $(curl -H "Accept:application/json+v3"

https://gitlab.com/api/v4/projects/42435927/repository/commits?per_page=1&page=1)
>> saad.json
#cat saad.json
#echo $(jq -r '.[].title' saad.json) >> saad.txt
#cat saad.txt
#test=$(sed -r '/^E/ s/^(.{7}).{26}/\r/' saad.txt)
#if [[ $test == 'reference:235v45115' ]]; then
# echo "yeeeeeessss!!"
#else
# echo "putaiiiiiiin"
#fi

while true
do
echo $(curl -H "Accept:application/json+v3"
https://gitlab.com/api/v4/projects/42435927/repository/commits?per_page=1&page=1)
>> saad.json
cat saad.json
echo $(jq -r '.[].title' saad.json) >> saad.txt
cat saad.txt
test=$(sed -r '/^E/ s/^(.{7}).{26}/\r/' saad.txt)
if [[ $test == $test ]];
then
echo "the files was exporting succesfully!!!"
exit
else
sleep 5
fi
done

You might also like