From 8b810c6a4d80112a2d07cc5599984403d590579d Mon Sep 17 00:00:00 2001 From: Alexandru Avadanii Date: Fri, 8 Sep 2017 21:19:01 +0200 Subject: bash scripts: Fix remaining shellcheck warn/errs Fix/silence all shellcheck errors, except for scripts in . Change-Id: Idc317cdba0f69b78299f2d3665e72ffc19dd8af5 Signed-off-by: Alexandru Avadanii --- mcp/patches/patch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mcp/patches') diff --git a/mcp/patches/patch.sh b/mcp/patches/patch.sh index aac0017b2..6cd65fd10 100755 --- a/mcp/patches/patch.sh +++ b/mcp/patches/patch.sh @@ -2,7 +2,7 @@ if [ -r "$1" ]; then while IFS=': ' read -r p_dest p_file; do - [[ "${p_dest}" =~ "$2" ]] && \ + [[ "${p_dest}" =~ $2 ]] && \ patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}" done < "$1" fi -- cgit 1.2.3-korg