Skip to content

Commit bb9245a

Browse files
adapt to windows sort
1 parent aae527e commit bb9245a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/premerge.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
continue-on-error: true
3535
run: |
3636
modified_files=$(git diff --name-only HEAD~1...HEAD)
37-
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort -u)
37+
modified_dirs=$(echo "$modified_files" | cut -d'/' -f1 | sort | uniq)
3838
3939
echo $modified_files
4040
echo $modified_dirs

0 commit comments

Comments
 (0)