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