aboutsummaryrefslogtreecommitdiffstats
path: root/testing/resource-agents/fix-bashism.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-28 11:07:30 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-28 11:07:36 +0000
commitf6357dfa9e8a8d65fc18299cccaeb1df7bc87571 (patch)
treed2a6b55f3c50ab95ea3a6afb84f60b9b021e67cc /testing/resource-agents/fix-bashism.patch
parent8ae7dfd8cc676be9ad8cb180060de67e48102a7d (diff)
downloadaports-f6357dfa9e8a8d65fc18299cccaeb1df7bc87571.tar.bz2
aports-f6357dfa9e8a8d65fc18299cccaeb1df7bc87571.tar.xz
testing/resource-agents: upgrade to 3.9.5
Diffstat (limited to 'testing/resource-agents/fix-bashism.patch')
-rw-r--r--testing/resource-agents/fix-bashism.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/resource-agents/fix-bashism.patch b/testing/resource-agents/fix-bashism.patch
new file mode 100644
index 0000000000..ca63c2d1a3
--- /dev/null
+++ b/testing/resource-agents/fix-bashism.patch
@@ -0,0 +1,12 @@
+--- ./heartbeat/ocf-shellfuncs.in.orig
++++ ./heartbeat/ocf-shellfuncs.in
+@@ -691,8 +691,7 @@
+ # OCF_TRACE_FILE is set to a path.
+ #
+ ocf_is_bash4() {
+- echo "$SHELL" | grep bash > /dev/null &&
+- [ ${BASH_VERSINFO[0]} = "4" ]
++ [ "${BASH_VERSION%%.*}" = "4" ]
+ }
+ ocf_trace_redirect_to_file() {
+ local dest=$1