Fix bash syntax

This should stop

    .github/workflows/script/update-node-modules.sh: line 1: [: missing `]'
This commit is contained in:
Ian Lynagh 2024-06-12 12:55:46 +01:00
parent 81b81437fd
commit b0944a22b8

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