@cryptotaxi247 / netdata-1 / commits / a959e8323

Update checks to work on OS X

Split GNU-style -e "{...}" command into multiple blocks suitable for all versions.

Philip Whineray committed Mar 20, 2017 at 21:50 UTC a959e83236c365f9c23f471a8c9f5f5066237e4b
1 file changed +1 -1
packaging/packaging.functions
+1 -1
@@ -128,7 +128,7 @@ get_configure_ac_rpmrel() {
128 get_spec_version() {
129 get_staged_file -o "$1".spec.in
130 test -f $MYTMP/files/"$1".spec.in || return 0 # Spec file is optional
131 - sed -n -e '1,/^%changelog/d' -e '/^*/{s/.*- \([0-9].*\)/\1/p;q}' "$1".spec.in
131 + sed -n -e '1,/^%changelog/d' -e '/^*/{' -e 's/.*- \([0-9].*\)/\1/p' -e q -e '}' "$1".spec.in
132 }
133
134 splitver() {