mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
chrome: use posix output of df, avoid not parsable multi line
This commit is contained in:
parent
cc5dd53dca
commit
46511103ff
@ -12,7 +12,7 @@ DATA_FILE="/tmp/curl.data"
|
|||||||
CHROME_FILE="google-chrome-stable_@CHROME_VERSION@-1_amd64.deb"
|
CHROME_FILE="google-chrome-stable_@CHROME_VERSION@-1_amd64.deb"
|
||||||
|
|
||||||
# check for enough free disk space
|
# check for enough free disk space
|
||||||
if [ $(df . | awk 'END {print $4}') -lt 400000 ]; then
|
if [ $(df -P . | awk 'END {print $4}') -lt 400000 ]; then
|
||||||
kodi-send --action="Notification(Not enough disk space, at least 400MB are required,30000,${ICON})" >/dev/null
|
kodi-send --action="Notification(Not enough disk space, at least 400MB are required,30000,${ICON})" >/dev/null
|
||||||
exit 0;
|
exit 0;
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user