diff options
Diffstat (limited to 'mcp/patches/patch.sh')
-rwxr-xr-x | mcp/patches/patch.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mcp/patches/patch.sh b/mcp/patches/patch.sh index 9f9cdea0e..d7db73591 100755 --- a/mcp/patches/patch.sh +++ b/mcp/patches/patch.sh @@ -1,8 +1,7 @@ -#!/bin/sh +#!/bin/bash if [ -r "$1" ]; then while IFS=': ' read -r p_dest p_file; do - patch -d $p_dest -p1 < /root/fuel/mcp/patches/$p_file + [[ "${p_dest}" =~ $2 ]] && patch -fd "${p_dest}" -p1 < "/root/fuel/mcp/patches/${p_file}" done < $1 fi - |