From cba7c54529a4e7b0309752ebd2866e7a8c9ccb36 Mon Sep 17 00:00:00 2001 From: Raunak Bhagat Date: Fri, 22 Nov 2024 18:36:53 -0800 Subject: [PATCH] Update to proper way of checking string-emptiness in bash --- .github/workflows/run-cluster.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-cluster.yaml b/.github/workflows/run-cluster.yaml index f698e8c25f..a72bae27f0 100644 --- a/.github/workflows/run-cluster.yaml +++ b/.github/workflows/run-cluster.yaml @@ -74,7 +74,7 @@ jobs: - name: Submit job to ray cluster run: | source .venv/bin/activate - if [[ '${{ inputs.command }}' -eq '' ]]; then + if [[ -z '${{ inputs.command }}' ]]; then echo 'Invalid command submitted; command cannot be empty' exit 1 fi