Skip to content

Commit 8c9f7d6

Browse files
committed
prepare-embargoed-branches: avoid Bash-ism
The `[^0-9]` shell pattern is not portable to Dash, which we use in the GitHub automation. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 7766f3c commit 8c9f7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prepare-embargoed-branches.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ then
3232
version="${version%(*}.${version##*(}"
3333
version=${version%)}
3434
;;
35-
*[^0-9.]*|*..*|.*|*.) die "Invalid version: '$version'";;
35+
*[!0-9.]*|*..*|.*|*.) die "Invalid version: '$version'";;
3636
*.*.*.*)
3737
# major.minor.patch.extra
3838
v0="${version#*.*.*.}"

0 commit comments

Comments
 (0)