summaryrefslogtreecommitdiff
path: root/utils/sb2
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sb2')
-rwxr-xr-xutils/sb25
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/sb2 b/utils/sb2
index 594c96d..3952d9b 100755
--- a/utils/sb2
+++ b/utils/sb2
@@ -237,6 +237,11 @@ function sboxify_environment()
SBOX_TOOLS_ROOT=$SBOX_FORCED_TOOLS_ROOT
fi
+ # Check that tools exist (or at least the directory exists)
+ if [ ! -d "$SBOX_TOOLS_ROOT" ]; then
+ exit_error "Tools directory '$SBOX_TOOLS_ROOT' does not exist."
+ fi
+
if [ -d $SBOX_SESSION_DIR/target_root ]; then
# A copy of target_root already exists, use that
# (this may happen when we are joining an old