Verified Commit bed5c444 authored by Max Rees's avatar Max Rees
Browse files

abump, apkgrel: ensure git is maybe installed first

parent 54d6a4a1
......@@ -111,6 +111,7 @@ cvelist=
fixes=
[ -n "$APORTSDIR" ] || error "can't locate \$APORTSDIR"
[ "$ABUILD_GIT" != "true" ] || die "can't locate git command"
$ABUILD_GIT rev-parse 2>/dev/null || die "not in a git tree"
args=$(getopt -o f:s:Rkqh --long fixes:,security:,recursive,keep,quiet,help \
......
......@@ -107,6 +107,7 @@ while true; do
-z|--zero) setto=0; cmd=do_set;;
-a|--add) cmd=do_add;;
-g|--clean-git) # verify that we're in a git tree
[ "$ABUILD_GIT" != "true" ] || die "can't locate git command"
$ABUILD_GIT rev-parse 2>/dev/null || die "not in a git tree"
cmd=do_add
only_clean_git=1;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment