Fix: grobisplitter scripts. You cant touch a datefile until after the directory is created
This commit is contained in:
parent
4c4652a74a
commit
284a8d91e2
2 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,6 @@ DATE=$(date -Ih | sed 's/+.*//')
|
|||
KOJIDIR=/mnt/fedora/app/fi-repo/centos/stream8-kojitarget
|
||||
DATEDIR=${KOJIDIR}/${DATE}
|
||||
TIME_FILE=${DATEDIR}/timestamp
|
||||
touch ${TIME_FILE}
|
||||
|
||||
##
|
||||
## 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"
|
||||
exit
|
||||
else
|
||||
mkdir -p ${DATEDIR}
|
||||
mkdir -p ${DATEDIR}
|
||||
touch ${TIME_FILE}
|
||||
fi
|
||||
|
||||
##
|
||||
|
|
|
@ -9,7 +9,6 @@ DATE=$(date -Ih | sed 's/+.*//')
|
|||
|
||||
DATEDIR=${HOMEDIR}/koji/${DATE}
|
||||
TIME_FILE=${DATEDIR}/timestamp
|
||||
touch ${TIME_FILE}
|
||||
|
||||
##
|
||||
## 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"
|
||||
exit
|
||||
else
|
||||
mkdir -p ${DATEDIR}
|
||||
mkdir -p ${DATEDIR}
|
||||
touch ${TIME_FILE}
|
||||
fi
|
||||
|
||||
##
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue