feat(commit-git-folder): clarify variable names in empty checks and update prompt for consistent help documentation

This commit is contained in:
Janik von Rotz committed 2026-04-16 16:43:54 +02:00
1 parent e3b9345cb7
commit 81d1a89bb1
2 files changed
+60 -2

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
#!/usr/bin/env bash
commit-git-folder() {
if [[ -z "$1" ]]; then echo "\$1 is empty."; exit; fi
if [[ -z "$2" ]]; then echo "\$2 is empty."; exit; fi
if [[ -z "$1" ]]; then echo "\$1/path is empty."; exit; fi
if [[ -z "$2" ]]; then echo "\$2/message is empty."; exit; fi
local git_folders=$(ls-git-folder "$1")
for git_folder in $git_folders; do