diff --git a/src/datastore_mad/remotes/libfs.sh b/src/datastore_mad/remotes/libfs.sh index 7ccc45ddf5..ed86008df8 100644 --- a/src/datastore_mad/remotes/libfs.sh +++ b/src/datastore_mad/remotes/libfs.sh @@ -188,6 +188,8 @@ function fs_size { ;; esac + SIZE=$(echo $SIZE | tr -d "\r") + if [ $error -ne 0 ]; then SIZE=0 else