Fix string interpolation (again)

This commit is contained in:
Luc Perkins 2024-05-16 20:51:04 -03:00
parent 6265732741
commit 6b0b02c6a2
No known key found for this signature in database
GPG key ID: 16DB1108FB591835

View file

@ -229,7 +229,7 @@ jobs:
- name: Compare Nix version with expected version - name: Compare Nix version with expected version
run: | run: |
NIX_VERSION_OUTPUT=$(nix --version) NIX_VERSION_OUTPUT=$(nix --version)
NIX_VERSION=$(echo "${NIX_VERSION}" | awk '{print $NF}') NIX_VERSION=$(echo "${NIX_VERSION_OUTPUT}" | awk '{print $NF}')
EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}" EXPECTED_OUTPUT="nix (Nix) ${{ matrix.versions.nix }}"
if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then if [ "${NIX_VERSION_OUTPUT}" != "${EXPECTED_OUTPUT}" ]; then
echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}" echo "Nix version ${NIX_VERSION} didn't match expected version ${{ matrix.versions.nix }}"