commitpkg: ensure we always use the main branch
Signed-off-by: Morten Linderud <foxboron@archlinux.org> Signed-off-by: Levente Polyak <anthraxx@archlinux.org>
This commit is contained in:
parent
90aba4f84b
commit
f4213f9c36
|
@ -54,6 +54,10 @@ if [[ ! -f PKGBUILD ]]; then
|
|||
die 'No PKGBUILD file'
|
||||
fi
|
||||
|
||||
if [[ "$(git symbolic-ref --short HEAD)" != main ]]; then
|
||||
die 'must be run from the main branch'
|
||||
fi
|
||||
|
||||
source=()
|
||||
# shellcheck source=contrib/makepkg/PKGBUILD.proto
|
||||
. ./PKGBUILD
|
||||
|
|
Loading…
Reference in New Issue