summaryrefslogtreecommitdiffstats
path: root/remote
diff options
context:
space:
mode:
Diffstat (limited to 'remote')
-rwxr-xr-xremote/setup_target3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 11a8ffbb..21831fde 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -54,6 +54,7 @@
MODE_DIR="${ROOT_DIR}/remote"
MODULES_DIR="${MODE_DIR}/modules"
EXPORT_DIR="/export/build"
+[ -z "$REMOTE_EXPORT_DIR" ] || EXPORT_DIR=$REMOTE_EXPORT_DIR
# Keep track of processed modules so we don't
# build a module multiple times when following dependencies
PROCESSED_MODULES=""
@@ -120,7 +121,7 @@ read_build () {
export_builds() {
[ ! -d "${MODE_DIR}/builds" ] && perror "No ${MODE_DIR}/builds, nothing to export."
- if mount|grep -q tm-scripts/remote/builds; then
+ if mount|grep -q ${MODE_DIR}/builds; then
pwarning "${MODE_DIR}/builds already exported! Ignoring..."
return 1;
fi