From 9dfd08262dd3cf833c84cd1c7c1b05c25e09862b Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Sat, 29 Jul 2017 00:34:31 +0200 Subject: mcp/scripts: shellcheck cleanup Change-Id: I280d540b461341e14de654186016248eba4d3521 Signed-off-by: Alexandru Avadanii --- mcp/patches/patch.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mcp/patches/patch.sh') diff --git a/mcp/patches/patch.sh b/mcp/patches/patch.sh index d7db73591..aac0017b2 100755 --- a/mcp/patches/patch.sh +++ b/mcp/patches/patch.sh @@ -2,6 +2,7 @@ if [ -r "$1" ]; then while IFS=': ' read -r p_dest p_file; do - [[ "${p_dest}" =~ $2 ]] && patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}" - done < $1 + [[ "${p_dest}" =~ "$2" ]] && \ + patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}" + done < "$1" fi -- cgit 1.2.3-korg