mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 21:56:42 +00:00
Merge pull request #3115 from vpeter4/le_tmp_full
scripts/mkimage: show message when temp folder is full
This commit is contained in:
commit
4ad81f9999
@ -39,11 +39,16 @@ cleanup() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_error() {
|
show_error() {
|
||||||
echo -e "image: error happen...\n"
|
echo "image: An error has occurred..."
|
||||||
cat "${SAVE_ERROR}"
|
|
||||||
echo
|
echo
|
||||||
|
if [ -s "${SAVE_ERROR}" ]; then
|
||||||
|
cat "${SAVE_ERROR}"
|
||||||
|
else
|
||||||
|
echo "Folder $LE_TMP might be out of free space..."
|
||||||
|
fi
|
||||||
|
echo
|
||||||
cleanup
|
cleanup
|
||||||
exit 1
|
die
|
||||||
}
|
}
|
||||||
|
|
||||||
trap cleanup SIGINT
|
trap cleanup SIGINT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user