We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4530510 commit 4684546Copy full SHA for 4684546
java/ql/automodel/publish.sh
@@ -9,12 +9,10 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
9
exit 0
10
fi
11
12
-# If there's an $1 argument, then check it's "override-release"
13
-if [ -n "${1:-}" ]; then
14
- if [ "$1" != "override-release" ]; then
15
- echo "Error: The only valid argument is 'override-release'"
16
- exit 1
17
- fi
+# Check that either there are 0 or 1 arguments, and if 1 argument then check that it is "override-release"
+if [ $# -gt 1 ] || [ $# -eq 1 ] && [ "$1" != "override-release" ]; then
+ echo "Error: Invalid arguments. Please run './publish --help' for usage information."
+ exit 1
18
19
20
# If we're publishing the codeml-automodel release then we will checkout the sha specified in the release.
0 commit comments