2023-03-29 18:14:33 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2023-05-27 20:33:20 +02:00
|
|
|
find_dep() {
|
2023-03-29 18:14:33 +02:00
|
|
|
dep=$1
|
2023-05-27 20:33:20 +02:00
|
|
|
which $dep > /dev/null 2>&1
|
2023-03-29 18:14:33 +02:00
|
|
|
if [ $? -eq 0 ]; then
|
|
|
|
echo found: $dep
|
|
|
|
else
|
2023-05-27 20:33:20 +02:00
|
|
|
echo error: $dep is required, but not installed
|
2023-03-29 18:14:33 +02:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2023-05-27 20:33:20 +02:00
|
|
|
find_dep ruby
|
|
|
|
find_dep bundle
|
|
|
|
find_dep node
|
|
|
|
find_dep npm
|
|
|
|
find_dep nginx
|
|
|
|
find_dep doas
|