Projet

Général

Profil

Révision 189c3953

ID189c3953e761031276e3540989cb7bc9054156fa
Parent bd26b1b4
Enfant 7ec35e17

Ajouté par Lars Kruse il y a plus de 7 ans

shell: use 'command -v' instead of 'hash' (for non-bash)

see https://stackoverflow.com/a/677212

Voir les différences:

plugins/chat/tinychat_users_
19 19
##
20 20
if [ "$1" = "autoconf" ]; then
21 21
    # Check that curl is installed
22
    if hash curl >/dev/null 2>&1; then
22
    if command -v curl >/dev/null 2>&1; then
23 23
echo "yes"
24 24
    else
25 25
echo "no (no curl installed)"

Formats disponibles : Unified diff