occlum/demos/benchmarks/filebench/preinstall_deps.sh
2024-06-25 10:55:45 +08:00

19 lines
359 B
Bash
Executable File

#!/bin/bash
set -e
BLUE='\033[1;34m'
NC='\033[0m'
echo -e "${BLUE}Start installing dependencies.${NC}"
DEPS="bison flex"
OS=`awk -F= '/^NAME/{print $2}' /etc/os-release`
if [ "$OS" == "\"Ubuntu\"" ]; then
apt-get update -y && apt-get install -y ${DEPS}
else
echo "Unsupported OS: $OS"
exit 1
fi
echo -e "${BLUE}Finish installing dependencies.${NC}"