From 49356f37f9de1257ada805b1c818e0f78f3f6d28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederik=20=E2=80=9CFreso=E2=80=9D=20S=2E=20Olesen?= Date: Mon, 29 Sep 2025 18:19:42 +0200 Subject: [PATCH] fix: make PKGBUILD files a superset of .bash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Arch Linux/ALPM PKGBUILDs are not currently being identified as `shell` files, but they’re really just specialised bash scripts, and thus also `shell` files. This makes `PKGBUILD` files a superset of the `bash` extension, which both makes it inherit the `shell` type, and also ensures that it will automatically adopt any future changes/additions that might be made to the `bash` extension. --- identify/extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identify/extensions.py b/identify/extensions.py index 7460c5b..8da71a7 100644 --- a/identify/extensions.py +++ b/identify/extensions.py @@ -399,7 +399,7 @@ 'PATENTS': EXTENSIONS['txt'], 'Pipfile': EXTENSIONS['toml'], 'Pipfile.lock': EXTENSIONS['json'], - 'PKGBUILD': {'text', 'bash', 'pkgbuild', 'alpm'}, + 'PKGBUILD': EXTENSIONS['bash'] | {'pkgbuild', 'alpm'}, 'poetry.lock': EXTENSIONS['toml'], 'pom.xml': EXTENSIONS['pom'], 'pylintrc': EXTENSIONS['ini'] | {'pylintrc'},