aboutsummaryrefslogtreecommitdiffstats
path: root/mcp/patches/patch.sh
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-29 00:34:31 +0200
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>2017-07-31 18:20:22 +0200
commit9dfd08262dd3cf833c84cd1c7c1b05c25e09862b (patch)
treeb707c7e9e345b02a73b54d57e5d1e9ed77f218bd /mcp/patches/patch.sh
parent9677c5ad3c9b94e432c2b1bf0de1a1103d5bd1a2 (diff)
mcp/scripts: shellcheck cleanup
Change-Id: I280d540b461341e14de654186016248eba4d3521 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
Diffstat (limited to 'mcp/patches/patch.sh')
-rwxr-xr-xmcp/patches/patch.sh5
1 files changed, 3 insertions, 2 deletions
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