diff options
Diffstat (limited to 'abuild')
| -rwxr-xr-x | abuild | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,11 +3,17 @@ set -e ## debug -if [[ "$DOCKER_ABUILD_DEBUG" = "true" ]]; then +if [ "$DOCKER_ABUILD_DEBUG" = "true" ]; then set -x PS4='$LINENO: ' fi +if [ "${PWD%aports/*}" = "$PWD" ]; then + echo "Error: expecting to be run from within an aports/ tree!" + echo "Could not find 'aports/' in the current path ($PWD)" + exit 1 +fi + DOCKER_VOLUMES=" -v $PWD:/cwd -v ${HOME}/.abuild:/home/builder/.abuild |
