summaryrefslogtreecommitdiff
path: root/transcode.sh.bash-completion.sh
diff options
context:
space:
mode:
authorDennis Fink2026-05-22 22:13:57 +0200
committerDennis Fink2026-05-22 22:13:57 +0200
commit70ca25e5b8cf72a30743170876f2565bc4c052fe (patch)
treecd7b0bbe20ee45c8ac9e4e1b0cd073446c92d03a /transcode.sh.bash-completion.sh
parente6df883f8bb16e24705db1937a0d1d62cef4ae9d (diff)
downloadtranscode.sh-70ca25e5b8cf72a30743170876f2565bc4c052fe.tar.gz
transcode.sh-70ca25e5b8cf72a30743170876f2565bc4c052fe.zip
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.
Diffstat (limited to 'transcode.sh.bash-completion.sh')
-rw-r--r--transcode.sh.bash-completion.sh4
1 files changed, 2 insertions, 2 deletions
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