1#!/usr/bin/env sh
2
3#
4# Arm SCP/MCP Software
5# Copyright (c) 2023, Arm Limited and Contributors. All rights reserved.
6#
7# SPDX-License-Identifier: BSD-3-Clause
8#
9
10if [ -f "requirements.txt" ]; then
11    python3 -m pip install --user -r "requirements.txt" > /dev/null
12fi
13
14if [ -f "Gemfile" ]; then
15    if [ "$(id -u)" -ne 0 ]; then
16        bundle config set --local path "/home/${USER}/.local/bin"
17    fi
18    bundle install > /dev/null
19fi
20