aports/unmaintained/resource-agents/fix-bashism.patch
Carlo Landmeter b6af1e02ef testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:

* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
  maintain it for you) for a minimum of 6 months ask it to be moved to community
2016-08-25 15:26:24 +02:00

13 lines
312 B
Diff

--- ./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