mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +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() {
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user