diff --git a/utils/sb2 b/utils/sb2 index 75ff5152..b2d16313 100755 --- a/utils/sb2 +++ b/utils/sb2 @@ -233,6 +233,10 @@ load_configuration() exit_error "Cannot access target root '$SBOX_TARGET_ROOT', aborting." fi + if [ ! -d "$SBOX_DIR/share/scratchbox2/modes/$SBOX_MAPMODE" ]; then + exit_error "Configure mode doesn't '$SBOX_MAPMODE' for target doesn't exist, aborting." + fi + LD_LIBRARY_PATH=$saved_LD_LIBRARY_PATH # resolve possible symlinks in SBOX_TARGET_ROOT and SBOX_TOOLS_ROOT