Branch: refs/heads/master Author: Jiří Techet techet@gmail.com Committer: Jiří Techet techet@gmail.com Date: Fri, 25 Oct 2024 21:33:35 UTC Commit: 7296fbcc2ae88cd30dcb7ad8fe289e9654bf1d8c https://github.com/geany/geany/commit/7296fbcc2ae88cd30dcb7ad8fe289e9654bf1d...
Log Message: ----------- Recognize shell scripts when using busybox
Pretty much stolen patch from Colomban Wendling from
https://github.com/geany/geany/issues/3884
and converted to a pull request. Also tested, seems to work as expected.
Modified Paths: -------------- src/filetypes.c
Modified: src/filetypes.c 4 lines changed, 4 insertions(+), 0 deletions(-) =================================================================== @@ -635,6 +635,10 @@ static GeanyFiletype *find_shebang(const gchar *utf8_filename, const gchar *line { /* skip "env" and read the following interpreter */ basename_interpreter += 4; } + else if (g_str_has_prefix(tmp, "busybox ")) + { + basename_interpreter += 8; + }
for (i = 0; ! ft && i < G_N_ELEMENTS(intepreter_map); i++) {
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).