diff options
| author | Carlos Maiolino <[email protected]> | 2026-05-02 14:09:27 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2026-05-02 14:09:27 +0200 |
| commit | 296c6b9ee85209c0ce375717e30686545baea107 (patch) | |
| tree | f0da71650e8f58ca528589ad4e39476732fa5b88 /maintainer/mutt-hooks | |
| parent | b2e1a1cb259e482720430ff9898d2e564ee73d0f (diff) | |
Diffstat (limited to 'maintainer/mutt-hooks')
| -rwxr-xr-x | maintainer/mutt-hooks/b4-shazam.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/maintainer/mutt-hooks/b4-shazam.sh b/maintainer/mutt-hooks/b4-shazam.sh index 4920658..478a276 100755 --- a/maintainer/mutt-hooks/b4-shazam.sh +++ b/maintainer/mutt-hooks/b4-shazam.sh @@ -1,6 +1,6 @@ #!/bin/bash -REPO_DIR=/home/cem/Source/MAINTAINER/xfs-linux +REPO_DIR=/home/cem/Source/MAINTAINER/$1 FORMAIL=$(which formail) B4=$(which b4) @@ -11,6 +11,10 @@ _die() { check_env() { + if [ -z $1 ]; then + _die "You must specify a branch" + fi + if [ ! -d $REPO_DIR ]; then _die "Linux repo does not exist" fi @@ -41,7 +45,7 @@ shazam_message() { echo "Message/Series $MSG_ID applied" } -check_env +check_env $1 MSG="" |
