diff --git a/common/common.docker b/common/common.docker index 2c1eb44..eb3e92b 100644 --- a/common/common.docker +++ b/common/common.docker @@ -7,6 +7,8 @@ ARG CMAKE_VERSION=3.31.5 ARG NINJA_VERSION=1.12.1 ARG FLATCC_VERSION=0.6.1 +ARG LIQUIDPROMT_VERSION=v1.12.0 + ARG OPENSSL_VERSION=openssl-1.1.1w ARG OPENSSL_HASH=cf3098950cb4d853ad95c0841f1f9c6d3dc102dccfcacd521d93925208b76ac8 diff --git a/imagefiles/install-liquidprompt-binary.sh b/imagefiles/install-liquidprompt-binary.sh index c4b0ddd..d5a58cc 100755 --- a/imagefiles/install-liquidprompt-binary.sh +++ b/imagefiles/install-liquidprompt-binary.sh @@ -7,12 +7,17 @@ if ! command -v git &> /dev/null; then exit 1 fi +if [[ -z "${LIQUIDPROMT_VERSION}" ]]; then + echo >&2 'error: LIQUIDPROMT_VERSION env. variable must be set to a non-empty value' + exit 1 +fi + cd /usr/share # Remove liquidprompt if exists rm -rf liquidprompt -git clone "https://github.com/nojhan/liquidprompt.git" -b v_1.11 +git clone "https://github.com/nojhan/liquidprompt.git" --depth 1 -b "${LIQUIDPROMT_VERSION}" liquidprompt cat << EOF >> /root/.bashrc