Révision 189c3953
shell: use 'command -v' instead of 'hash' (for non-bash)
see https://stackoverflow.com/a/677212
| 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