Skip to content

Commit

Permalink
Fix grep in ansible install
Browse files Browse the repository at this point in the history
  • Loading branch information
framctr committed Sep 14, 2024
1 parent 7d4e02c commit 6c0b998
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansible/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 6c0b998

Please sign in to comment.