From 70ca25e5b8cf72a30743170876f2565bc4c052fe Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 22 May 2026 22:13:57 +0200 Subject: style(shell): use function keyword consistently Add the function keyword to shell function definitions across the main script, developer scripts, and bash completion file. This makes function declarations visually consistent throughout the project and easier to scan without changing behavior. --- transcode.sh.bash-completion.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'transcode.sh.bash-completion.sh') diff --git a/transcode.sh.bash-completion.sh b/transcode.sh.bash-completion.sh index 8796373..2ae59d0 100644 --- a/transcode.sh.bash-completion.sh +++ b/transcode.sh.bash-completion.sh @@ -13,7 +13,7 @@ # long space --encode-file list.txt # long equals --encode-file=list.txt -_transcode_sh() { +function _transcode_sh() { local cur prev _init_completion -n = || return @@ -22,7 +22,7 @@ _transcode_sh() { # --------------------------------------------------------------------------- # Helper: collect preset names from the preset directory # --------------------------------------------------------------------------- - _transcode_presets() { + function _transcode_presets() { local presets=() if [[ -d "$preset_dir" ]]; then local f -- cgit v1.3.1