media-plugins/vdr-live: Replace unnecessary path_exists calls

Replace the unnecessary path_exists calls with plain bash -f test.
The path_exists function was only intended to be used when necessary
to deal with wildcards.

Bug: https://bugs.gentoo.org/662178
This commit is contained in:
Michał Górny
2018-08-08 23:14:05 +02:00
parent 3364ae034a
commit 6b861b6f5d
3 changed files with 3 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ pkg_postinst() {
elog "\tadmin:live"
if use ssl ; then
if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
einfo "emerge --config ${PN}"
else

View File

@@ -93,7 +93,7 @@ pkg_postinst() {
elog "\tadmin:live"
if use ssl ; then
if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
einfo "emerge --config ${PN}"
else

View File

@@ -86,7 +86,7 @@ pkg_postinst() {
elog "\tadmin:live"
if use ssl ; then
if path_exists -a "${ROOT}"/etc/vdr/plugins/live/live.pem; then
if [[ -f ${ROOT}/etc/vdr/plugins/live/live.pem ]]; then
einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
einfo "emerge --config ${PN}"
else