chrome: use posix output of df, avoid not parsable multi line

This commit is contained in:
mglae 2022-11-28 19:53:40 +01:00 committed by Rudi Heitbaum
parent cc5dd53dca
commit 46511103ff

View File

@ -12,7 +12,7 @@ DATA_FILE="/tmp/curl.data"
CHROME_FILE="google-chrome-stable_@CHROME_VERSION@-1_amd64.deb"
# 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
exit 0;
fi