Skip to content

Commit 4bf1b36

Browse files
authored
Allow shell script and .pkg file extension (microsoft#14398)
1 parent 571e614 commit 4bf1b36

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/check-files.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ jobs:
9696
9797
# Additional checks for binary files and large files
9898
if [[ -f "$file" ]]; then
99-
# Check if file is binary
100-
if file "$file" | grep -q "binary\|executable\|archive\|compressed"; then
99+
# Check if file is binary (but allow .sh files even if executable)
100+
if [[ "$extension" != "sh" ]] && file "$file" | grep -q "binary\|executable\|archive\|compressed"; then
101101
should_be_in_blob_store=true
102102
fi
103103

.github/workflows/disallowed-extensions.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ aac
5353
rpm
5454
deb
5555
msi
56-
pkg
5756
dmg
5857
iso
5958

0 commit comments

Comments
 (0)