Skip to content

Commit

Permalink
Update to proper way of checking string-emptiness in bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Raunak Bhagat committed Nov 23, 2024
1 parent 9f3fee1 commit cba7c54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/run-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cba7c54

Please sign in to comment.