From db4d737a2d883f7d3ff122fa3116afecb9942770 Mon Sep 17 00:00:00 2001 From: Max Rees Date: Sun, 21 Jul 2019 19:44:28 -0400 Subject: user/*: APKBUILD bashism removal, part one (a-p) --- user/postgresql/APKBUILD | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user/postgresql') diff --git a/user/postgresql/APKBUILD b/user/postgresql/APKBUILD index 91bdf258a..97300d986 100644 --- a/user/postgresql/APKBUILD +++ b/user/postgresql/APKBUILD @@ -69,8 +69,8 @@ prepare() { build() { export PYTHON=/usr/bin/python3 - export CFLAGS="${CFLAGS/-Os/-O2}" - export CPPFLAGS="${CPPFLAGS/-Os/-O2}" + export CFLAGS="$(printf '%s' "$CFLAGS" | sed 's/-Os/-O2/')" + export CFLAGS="$(printf '%s' "$CPPFLAGS" | sed 's/-Os/-O2/')" ./configure \ --build=$CBUILD \ -- cgit v1.2.3-70-g09d2