mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-14 18:37:28 +00:00
abump: verify that we're in git tree
This commit is contained in:
parent
8198ded868
commit
9a740d05aa
1
abump.in
1
abump.in
@ -95,6 +95,7 @@ cvelist=
|
|||||||
fixes=
|
fixes=
|
||||||
|
|
||||||
[ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR"
|
[ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR"
|
||||||
|
git rev-parse 2>/dev/null || die "not in a git tree"
|
||||||
|
|
||||||
args=`getopt -o s:Rkqh --long security:,recursive,keep,quiet,help -n "$prog" -- "$@"`
|
args=`getopt -o s:Rkqh --long security:,recursive,keep,quiet,help -n "$prog" -- "$@"`
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user