From 6c0b99825af3bf5596cc13610a27479a16b836a7 Mon Sep 17 00:00:00 2001 From: framctr <35109437+framctr@users.noreply.github.com> Date: Sat, 14 Sep 2024 07:42:01 +0000 Subject: [PATCH] Fix grep in ansible install --- src/ansible/install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ansible/install.sh b/src/ansible/install.sh index 3e1abaa..5a03c8f 100644 --- a/src/ansible/install.sh +++ b/src/ansible/install.sh @@ -14,7 +14,7 @@ ensure_nanolayer nanolayer_location "v0.5.0" $nanolayer_location install apt-get pip,python3-dev # --break-system-packages required by latest Debian-based distros to install the package system-wide -EXT_MANAGED_PY=$(pip install --help | grep -o '\-\-break-system-packages') +EXT_MANAGED_PY=$(pip install --help | grep -o '\-\-break-system-packages' | cat) # cat prevents grep to exit with error if not matching if [ "$VERSION" != "latest" ] ; then pip install "$EXT_MANAGED_PY" "${PACKAGE}"=="${VERSION}"