functions: fix abuild -A

fix so abuild -A does not exit with error if gitbase fails

this was introduced with the set -e
This commit is contained in:
Natanael Copa 2017-03-20 16:13:07 +00:00
parent c2e91c2f66
commit 9c1595dc42

View File

@ -71,7 +71,7 @@ readconfig() {
[ -f "$ABUILD_CONF" ] && . "$ABUILD_CONF"
[ -f "$ABUILD_USERCONF" ] && . "$ABUILD_USERCONF"
APORTSDIR=${_APORTSDIR-$APORTSDIR}
gitbase=$(git rev-parse --show-toplevel 2>/dev/null) # already is -P
gitbase=$(git rev-parse --show-toplevel 2>/dev/null) || true # already is -P
if [ -d "$APORTSDIR" ]; then
APORTSDIR=$(cd "$APORTSDIR"; pwd -P)
elif [ -z "$APORTSDIR" ] && [ -d "$HOME/aports" ]; then