Merge pull request #2331 from github/igfoo/bash

Fix bash syntax
This commit is contained in:
Ian Lynagh 2024-06-12 13:40:00 +01:00 committed by GitHub
commit 945bb878ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -eu
if [ "$1" != "update" && "$1" != "check-only" ]; then
if [ "$1" != "update" ] && [ "$1" != "check-only" ]; then
>&2 echo "Failed: Invalid argument. Must be 'update' or 'check-only'"
exit 1
fi