[ftbfs] doing scripting with no coffee leeds smooge to wierd places
This commit is contained in:
parent
61d8163602
commit
e4c027bf2d
1 changed files with 30 additions and 0 deletions
|
@ -1,2 +1,32 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# A weekly cron job which actually does the items needed.
|
||||||
|
TMPDIR=`mktemp -d /tmp/ftbfs_reminder.XXXXXX`
|
||||||
|
GITREPO=https://pagure.io/releng.git
|
||||||
|
SCRIPT=ftbfs_weekly_reminder.py
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
cd ${TMPDIR}
|
||||||
|
git clone ${GITREPO}
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
cd releng/scripts
|
||||||
|
./${SCRIPT}
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "${SCRIPT} had an error condition"
|
||||||
|
echo "Look in ${TMPDIR} for more info"
|
||||||
|
# Do not clean up trash
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
echo "Unable to clone ${GITREPO}"
|
||||||
|
echo "Look in ${TMPDIR} for more info"
|
||||||
|
# Do not clean up trash
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
cd /tmp/
|
||||||
|
rm -rf $TMPDIR
|
||||||
|
else
|
||||||
|
echo "Unable to create ${TMPDIR}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#FTBFS Weekly Reminder
|
#FTBFS Weekly Reminder
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue