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 545b5e7 commit 4530510Copy full SHA for 4530510
java/ql/automodel/publish.sh
@@ -9,6 +9,14 @@ 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
18
+fi
19
+
20
# If we're publishing the codeml-automodel release then we will checkout the sha specified in the release.
21
# So we need to check that there are no uncommitted changes in the local branch.
22
# And, if we're publishing the current HEAD, it's cleaner to ensure that there are no uncommitted changes.
0 commit comments