mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
www-apps/miniflux: fix variable quoting
Signed-off-by: Kenton Groombridge <concord@gentoo.org>
This commit is contained in:
@@ -88,7 +88,7 @@ pkg_config() {
|
||||
|
||||
# Extract the database URL variable instead of just sourcing the config file
|
||||
# because miniflux itself may interpret quotes as part of the URL
|
||||
local DATABASE_URL="$(sed -n 's/^DATABASE_URL=\(.*\)/\1/p' ${EROOT}/etc/${PN}.conf)"
|
||||
local DATABASE_URL="$(sed -n 's/^DATABASE_URL=\(.*\)/\1/p' "${EROOT}/etc/${PN}.conf")"
|
||||
[[ -n "${DATABASE_URL}" ]] || die "Failed getting DATABASE_URL from config file"
|
||||
|
||||
DATABASE_URL="${DATABASE_URL}" "${EROOT}"/usr/bin/miniflux -migrate || die "miniflux -migrate failed. Please check the above output for errors."
|
||||
|
||||
@@ -88,7 +88,7 @@ pkg_config() {
|
||||
|
||||
# Extract the database URL variable instead of just sourcing the config file
|
||||
# because miniflux itself may interpret quotes as part of the URL
|
||||
local DATABASE_URL="$(sed -n 's/^DATABASE_URL=\(.*\)/\1/p' ${EROOT}/etc/${PN}.conf)"
|
||||
local DATABASE_URL="$(sed -n 's/^DATABASE_URL=\(.*\)/\1/p' "${EROOT}/etc/${PN}.conf")"
|
||||
[[ -n "${DATABASE_URL}" ]] || die "Failed getting DATABASE_URL from config file"
|
||||
|
||||
DATABASE_URL="${DATABASE_URL}" "${EROOT}"/usr/bin/miniflux -migrate || die "miniflux -migrate failed. Please check the above output for errors."
|
||||
|
||||
Reference in New Issue
Block a user