media-plugins/vdr-vdrmanager: Replace unnecessary path_exists call
authorMichał Górny <mgorny@gentoo.org>
Wed, 8 Aug 2018 21:15:24 +0000 (23:15 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 15 Aug 2018 07:30:53 +0000 (09:30 +0200)
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.

Closes: https://bugs.gentoo.org/662178

media-plugins/vdr-vdrmanager/vdr-vdrmanager-0.14.ebuild

index 8639a6df48d1e6ae6ea2e64ebfcca320c973df2f..6f324f6bcdc80b9749c4c8df42f90bd6c750a21f 100644 (file)
@@ -63,7 +63,7 @@ pkg_postinst() {
        einfo "Add a password to /etc/conf.d/vdr.vdrmanager"
 
        if use ssl ; then
-               if path_exists -a "${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem"; then
+               if [[ -f ${ROOT}${VDRMANAGER_SSL_KEY_FILE}.pem ]]; then
                        einfo "found an existing SSL cert, to create a new SSL cert, run:\n"
                        einfo "emerge --config ${PN}"
                else