commit:     260e56a22d49794bf257340ee901ac56e5c30a47
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 24 06:07:41 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Thu Dec 25 08:38:55 2025 +0000
URL:        https://gitweb.gentoo.org/proj/webapp-config.git/commit/?id=260e56a2

Avoid `which`

Bug: https://bugs.gentoo.org/646588
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 sbin/webapp-cleaner | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/webapp-cleaner b/sbin/webapp-cleaner
index ee053a1..6eb5faf 100755
--- a/sbin/webapp-cleaner
+++ b/sbin/webapp-cleaner
@@ -42,7 +42,7 @@ function help() {
 }
 
 function sanity_checks() {
-       WEBAPP_CONFIG=$(which webapp-config)
+       WEBAPP_CONFIG=$(command -v webapp-config)
        if [ "${WEBAPP_CONFIG}x" == "x" ]; then
                eerror "webapp-config not found"
                exit 1

Reply via email to