mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-11 22:36:48 +00:00
Fix yq installation issue
This commit is contained in:
parent
da82ca619f
commit
7cd41349d1
@ -12,7 +12,7 @@ RUN apt update && apt-get install -y --no-install-recommends \
|
|||||||
python-is-python3 \
|
python-is-python3 \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
RUN pip3 install iq tomli
|
RUN pip3 install yq tomli
|
||||||
|
|
||||||
#= Build QEMU =================================================================
|
#= Build QEMU =================================================================
|
||||||
|
|
||||||
|
@ -6,7 +6,14 @@ set -e
|
|||||||
set -o pipefail
|
set -o pipefail
|
||||||
|
|
||||||
# Ensure all dependencies are installed
|
# Ensure all dependencies are installed
|
||||||
command -v yq >/dev/null 2>&1 || command -v yq >/dev/null 2>&1 || { echo >&2 "tools are not installed. Aborting."; exit 1; }
|
if ! command -v yq >/dev/null 2>&1; then
|
||||||
|
echo >&2 "Error: missing required tool: yq"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if ! command -v jq >/dev/null 2>&1; then
|
||||||
|
echo >&2 "Error: missing required tool: jq"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# Set up paths
|
# Set up paths
|
||||||
BENCHMARK_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
BENCHMARK_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user