Skip to content

Commit

Permalink
fix installer logs for alternate_tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
hgy59 committed May 16, 2021
1 parent a4b6949 commit 0934080
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mk/spksrc.service.use_alternate_tmpdir
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ service_clean_tmpdir ()
{
if [[ -e "${TMPDIR}" ]]; then
if [ -n "$(ls -A ${TMPDIR})" ]; then
echo "Cleanup ${TMPDIR}" >> "${INST_LOG}"
rm -rvf ${TMPDIR}/* >> "${INST_LOG}" 2>&1
echo "Cleanup ${TMPDIR}"
rm -rvf ${TMPDIR}/*
fi
if [ -n "$(ls -A ${TMPDIR})" ]; then
echo "Cleanup hidden files in ${TMPDIR}" >> "${INST_LOG}"
rm -rvf ${TMPDIR}/.* >> "${INST_LOG}" 2>&1
echo "Cleanup hidden files in ${TMPDIR}"
rm -rvf ${TMPDIR}/.*
fi
if [ -n "$(ls -A ${TMPDIR})" ]; then
echo "WARNING: Failed to remove all files in ${TMPDIR}" >> "${INST_LOG}"
echo "WARNING: Failed to remove all files in ${TMPDIR}"
fi
fi
}
Expand Down

0 comments on commit 0934080

Please sign in to comment.