Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb16275b

Browse files
authored
chore: fix regex bug in migration number fixer (#16822)
This fixes a slight regex bug on Bash 5, where `[:/]` would only match`:` but not both `:/`.```bash$ git remote -v | grep "github.com[:/]coder/coder.*(fetch)" | cut -f1$ git remote -v | grep "github.com[:/]*coder/coder.*(fetch)" | cut -f1origin```The former will actually cause the whole script to bork because of`pipefail`, since `grep` exits 1.Signed-off-by: Danny Kopping <dannykopping@gmail.com>
1 parent0c27f04 commitb16275b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎coderd/database/migrations/fix_migration_numbers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ list_migrations() {
1111
main() {
1212
cd"${SCRIPT_DIR}"
1313

14-
origin=$(git remote -v| grep"github.com[:/]coder/coder.*(fetch)"| cut -f1)
14+
origin=$(git remote -v| grep"github.com[:/]*coder/coder.*(fetch)"| cut -f1)
1515

1616
echo"Fetching${origin}/main..."
1717
git fetch -u"${origin}" main

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp