aboutsummaryrefslogtreecommitdiffstats
path: root/abuild
diff options
context:
space:
mode:
Diffstat (limited to 'abuild')
-rwxr-xr-xabuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/abuild b/abuild
index 855cdbc..f8e0c84 100755
--- a/abuild
+++ b/abuild
@@ -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