cic-staff-installer/setup_check.sh

20 lines
475 B
Bash

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
}
if [ "$INSTALL_EVM" == "bloxberg"] ; then
exec=(systemctl git gcc pip python3 sqlite3 clang rustup cmake)
else
exec=(systemctl git gcc pip python3 sqlite3)
fi
for e in ${exec[@]}; do
dbg $dbg_trace "Checking for dependency $e"
checkk $e
done