Skip to content
Snippets Groups Projects
Commit 1d6fd01c authored by Alex Iribarren's avatar Alex Iribarren
Browse files

Stop warning, just delete the .~tmp~ directories

parent 3b6538e7
Branches
No related tags found
1 merge request!73Stop warning, just delete the .~tmp~ directories
Pipeline #7029275 failed
......@@ -98,14 +98,14 @@ EOF
fi
RET=$?
# Check if there are leftover tmp directories, which will probably have to be deleted manually
# Check if there are leftover tmp directories, which will have to be deleted.
# For the ones that use quick-fedora-mirror, we kind of have to guess where the files go.
if [[ "${TOOL}" == "quick-fedora-mirror" ]]; then
BASE="/repo/${NOMAD_TASK_NAME#prod_rsync_}"
else
BASE="/repo"
fi
[[ -d $BASE ]] && find $BASE -type d -name '.~tmp~' -exec echo 'Warning: tmp directory detected: {}' \;
[[ -d $BASE ]] && find $BASE -type d -name '.~tmp~' -exec rm -rfv {} \;
if [[ $RET -ne 0 ]]; then
cat << EOF | error | tee $OUTPUT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment