Manual configuration was required for this script to use proper value.
Now it gets it automatically.
Change-Id: Icd0881ba05bafe120387f159fbb29c5c604d8a27
Signed-off-by: Aleksander Mistewicz <a.mistewicz@samsung.com>
. "${TSP_DIR}/common.sh"
-# Assume workspaces are stored on root partition.
-# Get diskspace usage for root mountpoint.
-PER="$(df -Ph | grep -o "[0-9][0-9]%.*/$")"
+# Get diskspace usage for filesystem storing workspaces.
+PER="$(df -P "${WS}" | grep -o "[0-9][0-9]%.*$")"
# Leave only numerical value.
PER="${PER%\%*}"
if [ "$PER" -ge 70 ]