Skip to content

Commit

Permalink
fix bash ifs
Browse files Browse the repository at this point in the history
  • Loading branch information
paulgessinger committed Jan 7, 2025
1 parent 77b70d2 commit d7c1a7f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/spack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
export TARGET_TRIPLET="${arch}_${{ inputs.compiler }}"
echo "TARGET_TRIPLET=${TARGET_TRIPLET}" >> "$GITHUB_ENV"
cp spack.lock "spack_${TARGET_TRIPLET}.lock"
if [ "${{ inputs.default }}" == "true" ]; then
if [[ "${{ inputs.default }}" == "true" ]]; then
# this will be become the default combination for this architecture
cp spack.lock "spack_${arch}.lock"
fi
Expand Down Expand Up @@ -126,11 +126,11 @@ jobs:
GH_OCI_USER: "${{ github.actor }}"
GH_OCI_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
run: |
if [ "${{ inputs.image }}" != "" ]; then
if [[ "${{ inputs.image }}" != "" ]]; then
export BASE_IMAGE="${{ inputs.image }}"
elif [ "${{ inputs.os }}" == "ubuntu-22.04" ]; then
elif [[ "${{ inputs.os }}" == "ubuntu-22.04" ]]; then
export BASE_IMAGE="ubuntu:22.04"
elif [ "${{ inputs.os }}" == "ubuntu-24.04" ]; then
elif [[ "${{ inputs.os }}" == "ubuntu-24.04" ]]; then
export BASE_IMAGE="ubuntu:24.04"
else
export BASE_IMAGE="ubuntu:24.04"
Expand Down

0 comments on commit d7c1a7f

Please sign in to comment.