Merge pull request #3115 from vpeter4/le_tmp_full

scripts/mkimage: show message when temp folder is full
This commit is contained in:
MilhouseVH 2018-11-21 13:36:36 +00:00 committed by GitHub
commit 4ad81f9999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,16 @@ cleanup() {
}
show_error() {
echo -e "image: error happen...\n"
cat "${SAVE_ERROR}"
echo "image: An error has occurred..."
echo
if [ -s "${SAVE_ERROR}" ]; then
cat "${SAVE_ERROR}"
else
echo "Folder $LE_TMP might be out of free space..."
fi
echo
cleanup
exit 1
die
}
trap cleanup SIGINT