al-quran.reflectslight.io/bin/check-dependencies
2023-05-27 15:41:59 -03:00

18 lines
279 B
Bash
Executable file

#!/bin/sh
find_dep() {
dep=$1
which $dep > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo found: $dep
else
echo error: $dep is required, but not installed
fi
}
find_dep ruby
find_dep bundle
find_dep node
find_dep npm
find_dep nginx
find_dep doas