cic-staff-installer/setup_check.sh

20 lines
476 B
Bash
Raw Normal View History

2021-11-10 09:43:30 +01:00
function checkk {
which $1 > /dev/null 2>&1
if [ "$?" -gt 0 ]; then
dbg $dbg_error "The dependency '$1' seems to be missing."
dbg $dbg_error "Please install your corresponding OS package and try again"
exit 1
fi
}
2022-01-21 16:18:49 +01:00
if [ "$INSTALL_EVM" == "bloxberg" ] ; then
exec=(systemctl git gcc pip python3 sqlite3 clang rustup cmake)
else
exec=(systemctl git gcc pip python3 sqlite3)
fi
2021-11-10 09:43:30 +01:00
for e in ${exec[@]}; do
dbg $dbg_trace "Checking for dependency $e"
checkk $e
done