SC2162 (info): read without -r will mangle backslashes.
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
if validate_percentage "$_warn_threshold" "$_thing"; then
if [ "$_usage" -ge "$_warn_threshold" ]; then
if [ -r "$_cache" ]; then
- read _prev <"$_cache"
+ read -r _prev <"$_cache"
else
_prev=""
fi
done | sort -u | xargs >"$_fs_defaults_cache"
fi
- read CTDB_MONITOR_FILESYSTEM_USAGE <"$_fs_defaults_cache"
+ read -r CTDB_MONITOR_FILESYSTEM_USAGE <"$_fs_defaults_cache"
}
monitor_filesystem_usage()