Fix: grobisplitter scripts. You cant touch a datefile until after the directory is created

This commit is contained in:
Stephen Smoogen 2022-05-28 10:23:39 -04:00
parent 4c4652a74a
commit 284a8d91e2
2 changed files with 4 additions and 4 deletions

View file

@ -10,7 +10,6 @@ DATE=$(date -Ih | sed 's/+.*//')
KOJIDIR=/mnt/fedora/app/fi-repo/centos/stream8-kojitarget KOJIDIR=/mnt/fedora/app/fi-repo/centos/stream8-kojitarget
DATEDIR=${KOJIDIR}/${DATE} DATEDIR=${KOJIDIR}/${DATE}
TIME_FILE=${DATEDIR}/timestamp TIME_FILE=${DATEDIR}/timestamp
touch ${TIME_FILE}
## ##
## Make a directory for where the new tree will live. Use a new date ## Make a directory for where the new tree will live. Use a new date
@ -20,7 +19,8 @@ if [ -d ${DATEDIR} ]; then
echo "Directory already exists. Please remove or fix" echo "Directory already exists. Please remove or fix"
exit exit
else else
mkdir -p ${DATEDIR} mkdir -p ${DATEDIR}
touch ${TIME_FILE}
fi fi
## ##

View file

@ -9,7 +9,6 @@ DATE=$(date -Ih | sed 's/+.*//')
DATEDIR=${HOMEDIR}/koji/${DATE} DATEDIR=${HOMEDIR}/koji/${DATE}
TIME_FILE=${DATEDIR}/timestamp TIME_FILE=${DATEDIR}/timestamp
touch ${TIME_FILE}
## ##
## Make a directory for where the new tree will live. Use a new date ## Make a directory for where the new tree will live. Use a new date
@ -19,7 +18,8 @@ if [ -d ${DATEDIR} ]; then
echo "Directory already exists. Please remove or fix" echo "Directory already exists. Please remove or fix"
exit exit
else else
mkdir -p ${DATEDIR} mkdir -p ${DATEDIR}
touch ${TIME_FILE}
fi fi
## ##