Skip to content

Commit d97a2c1

Browse files
kernel_build.sh: Improve branch name sanitization
Extended sed pattern to replace some more characters which could be in a branch name Signed-off-by: Shreeya Patel <[email protected]>
1 parent 89dea4b commit d97a2c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel_build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ fi
77

88
pwd
99

10-
BRANCH=$(git branch | grep \* | cut -d ' ' -f2 | sed -r 's/[{}/]/_/g')
10+
BRANCH=$(git branch | grep \* | cut -d ' ' -f2 | sed 's/[{}()]//g; s/\//_/g')
1111

1212
START=$(date +%s)
1313
START_MRPROPER=$(date +%s)

0 commit comments

Comments
 (0)